diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:31 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | d6251996fa5b8371c0f7449825b5d1788da95dd0 (patch) | |
tree | d2295fb5edffef971841c3220a6c1ce17af81808 /source3/lib/dbwrap_tdb.c | |
parent | 2b1452b2fc0573e09fedb7fbd8a5f8d278470b9c (diff) | |
download | samba-d6251996fa5b8371c0f7449825b5d1788da95dd0.tar.gz samba-d6251996fa5b8371c0f7449825b5d1788da95dd0.tar.bz2 samba-d6251996fa5b8371c0f7449825b5d1788da95dd0.zip |
tdb_transaction_cancel: ignore return value.
TDB2 returns void here. tdb_transaction_cancel will *always* return
with the transaction cancelled, but it will complain via the log
function if a transaction wasn't in progress.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib/dbwrap_tdb.c')
-rw-r--r-- | source3/lib/dbwrap_tdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_tdb.c b/source3/lib/dbwrap_tdb.c index fc2af28c83..2ed368ee97 100644 --- a/source3/lib/dbwrap_tdb.c +++ b/source3/lib/dbwrap_tdb.c @@ -330,7 +330,8 @@ static int db_tdb_transaction_cancel(struct db_context *db) { struct db_tdb_ctx *db_ctx = talloc_get_type_abort(db->private_data, struct db_tdb_ctx); - return tdb_transaction_cancel(db_ctx->wtdb->tdb); + tdb_transaction_cancel(db_ctx->wtdb->tdb); + return 0; } struct db_context *db_open_tdb(TALLOC_CTX *mem_ctx, |