diff options
| author | Marcus Boerger <helly@php.net> | 2005-12-08 19:35:05 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2005-12-08 19:35:05 +0000 |
| commit | 25de19a2fbec1db3e889ab473a493496c3ba51bb (patch) | |
| tree | f86f7b601d79b194491bc22dedf82c39a85e9b25 /ext/dba/dba_db4.c | |
| parent | 484de9c3a4808f8149da5a692d87ab55b765f787 (diff) | |
| download | php-git-25de19a2fbec1db3e889ab473a493496c3ba51bb.tar.gz | |
- MFH Change dba/db4 to use its own locking
Diffstat (limited to 'ext/dba/dba_db4.c')
| -rw-r--r-- | ext/dba/dba_db4.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c index 6dee094832..93ec4bc235 100644 --- a/ext/dba/dba_db4.c +++ b/ext/dba/dba_db4.c @@ -77,14 +77,15 @@ 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 */ } + gmode |= DB_INIT_LOCK; + if (info->flags & DBA_PERSISTENT) { + gmode |= DB_THREAD; + } + if (info->argc > 0) { convert_to_long_ex(info->argv[0]); filemode = Z_LVAL_PP(info->argv[0]); |
