• Rusty Russell's avatar
    tdb: suppress record write locks when allrecord lock is taken. · f4ed2127
    Rusty Russell authored
    Records themselves get (read) locked by the traversal code against delete.
    Interestingly, this locking isn't done when the allrecord lock has been
    taken, though the allrecord lock until recently didn't cover the actual
    records (it now goes to end of file).
    
    The write record lock, grabbed by the delete code, is not suppressed by
    the allrecord lock, which causes us to punch a hole in that lock when we
    release the write record lock.  Make this consistent: *no* record locks
    of any kind when the allrecord lock is taken.
    f4ed2127
lock.c 18.5 KB