mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Avoid race between numreaders++ and reading numreaders at cleanup. Make the un-mutexed reset of reader table entry, atomic: Reset mr_pid only. Instead check mr_pid != 0 in mdb_page_alloc()'s scan for readers. (txnid_t)-1 as "no ID"-mark avoids a check for mr_txnid != 0. The scan can stop when seeing an old reader. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| COPYRIGHT | ||
| Doxyfile | ||
| LICENSE | ||
| Makefile | ||
| mdb.c | ||
| mdb.h | ||
| mdb_stat.c | ||
| mdb_stata.c | ||
| mfree.c | ||
| midl.c | ||
| midl.h | ||
| mtest.c | ||
| mtest2.c | ||
| mtest3.c | ||
| mtest4.c | ||
| mtest5.c | ||
| mtest6.c | ||