diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-24 11:02:55 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-24 11:02:55 +1030 |
commit | a84222bbaf9ed2c7b9c61b8157b2e3c85f17fa32 (patch) | |
tree | 3b3731eb86d5c48e213f1b78a3316118b0f0631e /lib/tdb/common/transaction.c | |
parent | dd1b508c63034452673dbfee9956f52a1b6c90a5 (diff) | |
download | samba-a84222bbaf9ed2c7b9c61b8157b2e3c85f17fa32.tar.gz samba-a84222bbaf9ed2c7b9c61b8157b2e3c85f17fa32.tar.bz2 samba-a84222bbaf9ed2c7b9c61b8157b2e3c85f17fa32.zip |
tdb: rename tdb_release_extra_locks() to tdb_release_transaction_locks()
tdb_release_extra_locks() is too general: it carefully skips over the
transaction lock, even though the only caller then drops it. Change
this, and rename it to show it's clearly transaction-specific.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common/transaction.c')
-rw-r--r-- | lib/tdb/common/transaction.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tdb/common/transaction.c b/lib/tdb/common/transaction.c index 0f9f80c86e..d24256d2fb 100644 --- a/lib/tdb/common/transaction.c +++ b/lib/tdb/common/transaction.c @@ -615,12 +615,11 @@ static int _tdb_transaction_cancel(struct tdb_context *tdb) } /* This also removes the OPEN_LOCK, if we have it. */ - tdb_release_extra_locks(tdb); + tdb_release_transaction_locks(tdb); /* restore the normal io methods */ tdb->methods = tdb->transaction->io_methods; - tdb_transaction_unlock(tdb, F_WRLCK); SAFE_FREE(tdb->transaction->hash_heads); SAFE_FREE(tdb->transaction); |