question on write transaction
by Shu, Xinxin
Hi list, recently I wrote app on LMDB, found that for every write , lmdb lock a global lock when transaction is created , and release this lock in mdb_txn_commit, on Ubuntu, this lock is implemented by pthread_mutext_t. in my app, I create write transaction in a thread, then commit this write transaction in another thread, since lmdb use pthread_mutex_unlock to release this lock, according to manual , attempting to unlock the mutex if it was not locked by the calling thread results in undefined behavior, then my app cannot create write transaction . So does this issue known to community or is there any way to work around?
Cheers,
xinxin
8 years, 4 months
I want to use memberof overlay but I do not have a clue on how to even look at it.
by Eliezer Croitoru
I want to use memberof overlay but I do not have a clue on how to even
look at it.
I have tried to use this:
http://www.schenkels.nl/2013/03/how-to-setup-openldap-with-memberof-overl...
which kind of worked and it has added something to my database.
Now I have tried to run some search but either I am doing something
wrong or the memberof is not loaded.
So first, how do check that it is loaded?
I was thinking about :
ldapsearch -x -H ldap:/// -b cn=module
but again I am unsure since it won't give results.
I am trying to use memberof for squid to match a group membership.
Any hints? directions to understand?
I understand the basics of LDAP but this is something above basic LDAP.
Thanks,
Eliezer
8 years, 4 months