From 814c0be675ca7fdf44cf74ebb1eac73117c887e5 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 21 Jun 2003 18:16:38 +0000 Subject: [PATCH] When persistent then we may use threads --- ext/dba/dba_db4.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ } -- 2.40.0