helly Sat Jun 21 14:16:38 2003 EDT
Modified files:
/php4/ext/dba dba_db4.c
Log:
When persistent then we may use threads
Index: php4/ext/dba/dba_db4.c
diff -u php4/ext/dba/dba_db4.c:1.9 php4/ext/dba/dba_db4.c:1.10
--- php4/ext/dba/dba_db4.c:1.9 Thu Jun 19 07:10:14 2003
+++ php4/ext/dba/dba_db4.c Sat Jun 21 14:16:38 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db4.c,v 1.9 2003/06/19 11:10:14 helly Exp $ */
+/* $Id: dba_db4.c,v 1.10 2003/06/21 18:16:38 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -72,6 +72,10 @@
(info->mode == DBA_CREAT && !s) ? 0 :
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 */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php