summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/dba/dba_db4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c
index e653541fef..c4020e9fc9 100644
--- a/ext/dba/dba_db4.c
+++ b/ext/dba/dba_db4.c
@@ -73,6 +73,10 @@ DBA_OPEN_FUNC(db4)
info->mode == DBA_WRITER ? 0 :
info->mode == DBA_TRUNC ? DB_CREATE | DB_TRUNCATE : -1;
+ if (info->flags & DBA_PERSISTENT) {
+ gmode |= DB_THREAD;
+ }
+
if (gmode == -1) {
return FAILURE; /* not possible */
}