Commit 089a515a authored by Rusty Russell's avatar Rusty Russell

tdb: fix locking unlocking error introduced in cleanup

parent b2c0ebc6
......@@ -508,7 +508,7 @@ static int _tdb_unlockall(struct tdb_context *tdb, int ltype, bool mark_lock)
}
if (!mark_lock &&
tdb->methods->brunlock(tdb, F_WRLCK,
tdb->methods->brunlock(tdb, ltype,
FREELIST_TOP, 4*tdb->header.hash_size)) {
TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_unlockall failed (%s)\n", strerror(errno)));
return -1;
......
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