Commit dbbde019 authored by Rusty Russell's avatar Rusty Russell

tdb2: fix tdb_check() return when free table entries missing.

It mistakenly returned -1 meaning "success".
parent c84c6577
...@@ -572,7 +572,7 @@ int tdb_check(struct tdb_context *tdb, ...@@ -572,7 +572,7 @@ int tdb_check(struct tdb_context *tdb,
if (num_found != num_free) { if (num_found != num_free) {
tdb->log(tdb, TDB_DEBUG_ERROR, tdb->log_priv, tdb->log(tdb, TDB_DEBUG_ERROR, tdb->log_priv,
"tdb_check: Not all entries are in free table\n"); "tdb_check: Not all entries are in free table\n");
return false; return -1;
} }
tdb_allrecord_unlock(tdb, F_RDLCK); tdb_allrecord_unlock(tdb, F_RDLCK);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment