• Rusty Russell's avatar
    tdb2: fix tdb_chainlock · c5e3f07a
    Rusty Russell authored
    We can't enlarge the lock without risking deadlock, so tdb_chainlock() can't
    simply grab a one-byte lock; it needs to grab the lock we'd need to protect
    the hash.
    
    In theory, tdb_chainlock_read() could use a one-byte lock though.
    c5e3f07a
hash.c 18.1 KB