From: Howard Chu Date: Thu, 22 Sep 2011 11:34:40 +0000 (-0700) Subject: Reader table notes X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54eb76cc7aab42f5caa396ec920e1de8c1531970;p=openldap Reader table notes --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 04f38b3674..89048ae272 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -439,9 +439,12 @@ typedef struct MDB_reader { * For POSIX the actual mutexes reside in the shared memory of this * mapped file. On Windows, mutexes are named objects allocated by the * kernel; we store the mutex names in this mapped file so that other - * processes can grab them. This same approach will also be used on + * processes can grab them. This same approach is also used on * MacOSX/Darwin (using named semaphores) since MacOSX doesn't support - * process-shared POSIX mutexes. + * process-shared POSIX mutexes. For these cases where a named object + * is used, the object name is derived from a 64 bit FNV hash of the + * environment pathname. As such, naming collisions are extremely + * unlikely. If a collision occurs, the results are unpredictable. */ typedef struct MDB_txbody { /** Stamp identifying this as an MDB lock file. It must be set