Re: Read lock without a write lock
by Howard Chu
Milosz Tanski wrote:
> I saw that LMDB recently added a new flag MDB_NOLOCK. Is there a way
> to keep the reader lock file and but do away with the write lock?
>
> My motivation for doing this to be able to use LMDB from a process
> that forks to share the database. And the application can implement
> it's own write lock (mutex in shm or futex on linux).
What advantage do you gain from using your own write lock?
Note that forking to share the database is explicitly *not* supported.
> This would be preferable to having to do doing something like a
> MDB_NOLOCK with a pthread_rwlock since we could still have parallel
> readers with one writer.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
9 years, 10 months
RE24 Testing call #1 (OpenLDAP 2.4.38)
by Quanah Gibson-Mount
Current RE24 is ready for testing for the 2.4.38 release.
Thanks!
--Quanah
--
Quanah Gibson-Mount
Architect - Server
Zimbra, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
9 years, 10 months
conflicting types for ‘slap_reparse_sync_cookie’
by Michael Ströder
HI!
Building current git master 0645878d5dc4c08b7fd8d5bf39a166d74650f15b fails
(see below).
Ciao, Michael.
make[3]: Entering directory
`/usr/src/michael/openldap-git/master/openldap/servers/slapd/overlays'
make[3]: Nothing to be done for `static'.
make[3]: Leaving directory
`/usr/src/michael/openldap-git/master/openldap/servers/slapd/overlays'
cc -g -O0 -DSLAP_SCHEMA_EXPOSE -DSLAP_CONFIG_DELETE -I../../include -I.
-I./slapi -I. -I../../include -I/usr/include -I/usr/include -I/usr/include
-I/usr/include -c -o ldapsync.o ldapsync.c
In file included from ldapsync.c:26:0:
slap.h:65:0: warning: "SLAP_CONFIG_DELETE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
ldapsync.c:375:1: error: conflicting types for ‘slap_reparse_sync_cookie’
In file included from slap.h:3342:0,
from ldapsync.c:26:
proto-slap.h:1188:20: note: previous declaration of ‘slap_reparse_sync_cookie’
was here
make[2]: *** [ldapsync.o] Error 1
make[2]: Leaving directory
`/usr/src/michael/openldap-git/master/openldap/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/usr/src/michael/openldap-git/master/openldap/servers'
make: *** [all-common] Error 1
9 years, 11 months