Commit 64eca8b8 authored by Rusty Russell's avatar Rusty Russell

tdb: fix lock-tracking test code after gradual lock changes.

parent cb399d26
......@@ -70,6 +70,12 @@ int fcntl_with_lockcheck(int fd, int cmd, ... /* arg */ )
break;
if (fl_end >= i->off && fl_end < i_end)
break;
/* tdb_allrecord_lock does this, handle adjacent: */
if (fl->l_start == i_end && fl->l_type == i->type) {
i->len = fl->l_len ? i->len + fl->l_len : 0;
goto ok;
}
}
if (i) {
/* Special case: upgrade of allrecord lock. */
......
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