AHA! Figured out this LMDB issue. (a) the built in locking didn't work across threads (b) my own pthread_mutex locking failed, but the DB was still corrupted. read the header file section about locking...no help. Then read the section on "read only" mode... and learn...
-
Show this thread
-
Replying to @MorlockP
Eh, what? Of course the built in locking works across threads, that's what pthread_mutexes are designed for. There are no concurrency bugs in LMDB.
1 reply 0 retweets 0 likes -
Replying to @hyc_symas
All I can tell you is that when invited off 20 writes in 20 threads and used built in locking, 30% of writes got corrupted, and when I turned locking off and used my own thread murders, 0% did. /shrug
1 reply 0 retweets 1 like -
Replying to @MorlockP
What platform? You realize that LMDB fully serializes writes? There is in fact no write concurrency.
2 replies 0 retweets 1 like
Replying to @hyc_symas
I realize that the docs claim that it serialized writes. That's why I was so surprised st the behavior.
4:43 AM - 7 Dec 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.