diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/test/lock-tracking.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tdb/test/lock-tracking.c b/lib/tdb/test/lock-tracking.c index 90a07f8ef1..b2f092c0c4 100644 --- a/lib/tdb/test/lock-tracking.c +++ b/lib/tdb/test/lock-tracking.c @@ -65,6 +65,17 @@ int fcntl_with_lockcheck(int fd, int cmd, ... /* arg */ ) } break; } + if (((*l)->off == fl->l_start) + && ((*l)->len == 0) + && (ret == 0)) { + /* + * Remove a piece from the start of the + * allrecord_lock + */ + old = *l; + (*l)->off += fl->l_len; + break; + } } if (!old && !suppress_lockcheck) { diag("Unknown unlock %u@%u - %i", |