• Rusty Russell's avatar
    tdb: use tdb_nest_lock() for open lock. · e9989ef0
    Rusty Russell authored
    This never nests, so it's overkill, but it centralizes the locking into
    lock.c and removes the ugly flag in the transaction code to track whether
    we have the lock or not.
    
    Note that we have a temporary hack so this places a real lock, despite
    the fact that we are in a transaction.
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    e9989ef0
lock.c 17.3 KB