summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-09-19 00:02:28 +0000
committerJeremy Allison <jra@samba.org>2001-09-19 00:02:28 +0000
commite9479e8d8af6601650ca35cce4319440a0aff9a0 (patch)
treec07e9e93138698600fcdf5bd5356d7ae595ee683 /source3/tdb
parenta27509937ca8bb57b9d7cc6cd7a3dd06ac4a0455 (diff)
downloadsamba-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.c2
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 */