summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
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 */