summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap_tdb.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:35 +0200
commit9850f256337d70401d962bb1f6d5b834a221358d (patch)
tree1e3d01a156da09aab6a3bb9b0fb66d8cd36ab7d9 /source3/lib/dbwrap_tdb.c
parent868d77bc5b38e628f74d5cd03c5f87eb5a666b09 (diff)
downloadsamba-9850f256337d70401d962bb1f6d5b834a221358d.tar.gz
samba-9850f256337d70401d962bb1f6d5b834a221358d.tar.bz2
samba-9850f256337d70401d962bb1f6d5b834a221358d.zip
tdb_chainunlock: ignore return value.
TDB2 returns void here. tdb_chainunlock will *always* return with the chain unlocked, but it will complain via the log function if it wasn't locked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib/dbwrap_tdb.c')
-rw-r--r--source3/lib/dbwrap_tdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/dbwrap_tdb.c b/source3/lib/dbwrap_tdb.c
index 2ed368ee97..0832b06a15 100644
--- a/source3/lib/dbwrap_tdb.c
+++ b/source3/lib/dbwrap_tdb.c
@@ -43,10 +43,7 @@ static int db_tdb_record_destr(struct db_record* data)
hex_encode_talloc(data, (unsigned char *)data->key.dptr,
data->key.dsize)));
- if (tdb_chainunlock(ctx->wtdb->tdb, data->key) != 0) {
- DEBUG(0, ("tdb_chainunlock failed\n"));
- return -1;
- }
+ tdb_chainunlock(ctx->wtdb->tdb, data->key);
return 0;
}