summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db4.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-06-21 18:16:38 +0000
committerMarcus Boerger <helly@php.net>2003-06-21 18:16:38 +0000
commit814c0be675ca7fdf44cf74ebb1eac73117c887e5 (patch)
treeeefa93d4b07aa31d7b368e7e70b82855b74f1097 /ext/dba/dba_db4.c
parentce62305a38f50fcb29e38b0e67d37ec89a5f661b (diff)
downloadphp-git-814c0be675ca7fdf44cf74ebb1eac73117c887e5.tar.gz
When persistent then we may use threads
Diffstat (limited to 'ext/dba/dba_db4.c')
-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 */
}