diff options
author | Jeremy Allison <jra@samba.org> | 2001-09-19 00:02:28 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-09-19 00:02:28 +0000 |
commit | e9479e8d8af6601650ca35cce4319440a0aff9a0 (patch) | |
tree | c07e9e93138698600fcdf5bd5356d7ae595ee683 /source3/tdb | |
parent | a27509937ca8bb57b9d7cc6cd7a3dd06ac4a0455 (diff) | |
download | samba-e9479e8d8af6601650ca35cce4319440a0aff9a0.tar.gz samba-e9479e8d8af6601650ca35cce4319440a0aff9a0.tar.bz2 samba-e9479e8d8af6601650ca35cce4319440a0aff9a0.zip |
Return correct error code on lock fail in tdb_expand.
Jeremy.
(This used to be commit b45793ec3f6ff04587bee8f463ef6410b06097d6)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index 4eb851a943..4714844758 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -637,7 +637,7 @@ static int tdb_expand(TDB_CONTEXT *tdb, tdb_off size) if (tdb_lock(tdb, -1, F_WRLCK) == -1) { TDB_LOG((tdb, 0, "lock failed in tdb_expand\n")); - return 0; + return -1; } /* must know about any previous expansions by another process */ |