What is the purpose of the mkdir_locking option in the fs.conf file?

Asked by Thiago da Silva

gluster/swift/obj/diskfile.py checks the fs.conf file for the mkdir_locking option. What is the purpose of this option?

Question information

Language:
English Edit question
Status:
Solved
For:
swiftonfile Edit question
Assignee:
Thiago da Silva Edit question
Solved by:
Thiago da Silva
Solved:
Last query:
Last reply:
Revision history for this message
Thiago da Silva (thiagodasilva) said :
#1

This option was put in place as a workaround to an earlier Glusterfs bug that allowed a race condition to occur when two clients attempted to create the same dir. Code was put in place in gluster-swift to lock the parent directory before attempting to create the dir, thus avoiding the race condition.

The bug has since been fixed in Glusterfs, so this option was already defaulted to False in the (Gluster-Swift) Havana release and it is now being deprecated in the (Gluster-Swift) Icehouse release.

Revision history for this message
Thiago da Silva (thiagodasilva) said :
#2

Thiago da Silva suggests this article as an answer to your question:
FAQ #2499: “What is the purpose of the mkdir_locking option in the fs.conf file?”.