]> granicus.if.org Git - php/commitdiff
When persistent then we may use threads
authorMarcus Boerger <helly@php.net>
Sat, 21 Jun 2003 18:16:38 +0000 (18:16 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 21 Jun 2003 18:16:38 +0000 (18:16 +0000)
ext/dba/dba_db4.c

index e653541fef6273d5afbfabd9a480dd2623c4daaa..c4020e9fc90267294c18cd7ef56dc9492b10f765 100644 (file)
@@ -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 */
        }