summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-09 17:28:08 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-09 17:28:08 +0100
commit36c055ca75773ce36cc286afe00a1ceefc2449f6 (patch)
tree596f13274f441292140683b9735c20049669efcf
parent4ed874500c66aeb60cb11a0acc081dbc113eec51 (diff)
downloadlibrcc-36c055ca75773ce36cc286afe00a1ceefc2449f6.tar.gz
librcc-36c055ca75773ce36cc286afe00a1ceefc2449f6.tar.bz2
librcc-36c055ca75773ce36cc286afe00a1ceefc2449f6.tar.xz
librcc-36c055ca75773ce36cc286afe00a1ceefc2449f6.zip
Open berkeleydb allowing mulithreaded access
-rw-r--r--src/rccdb4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rccdb4.c b/src/rccdb4.c
index f29f5e3..acbed9b 100644
--- a/src/rccdb4.c
+++ b/src/rccdb4.c
@@ -61,7 +61,7 @@ db4_context rccDb4CreateContext(const char *dbpath, rcc_db4_flags flags) {
err = rccLock();
if (!err) {
- err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_TXN|DB_USE_ENVIRON|DB_INIT_LOCK|DB_INIT_MPOOL|DB_RECOVER, 00644);
+ err = dbe->open(dbe, dbpath, DB_CREATE|DB_INIT_TXN|DB_USE_ENVIRON|DB_INIT_LOCK|DB_INIT_MPOOL|DB_RECOVER|DB_THREAD, 00644);
rccUnLock();
}
# else /* DB_LOG_AUTOREMOVE */