summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:32 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:35 +0200
commit58f7cda1bc6b7767c318a038bdb686f4e59e2e64 (patch)
treec6879a9aa264f017724497e1212a8158cc21d6a8 /source3/lib
parent3a8faefd6625db45e11c775a77413b35189e2ba9 (diff)
downloadsamba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.tar.gz
samba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.tar.bz2
samba-58f7cda1bc6b7767c318a038bdb686f4e59e2e64.zip
tdb_compat: use tdb_errorstr_compat()
Since TDB2 functions return the error directly, tdb_errorstr() taken an error code, not the tdb as it does in TDB1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/gencache.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index d5ca164943..296f50ebae 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -472,7 +472,7 @@ bool gencache_stabilize(void)
}
DEBUG(10, ("Could not start transaction on gencache.tdb: "
- "%s\n", tdb_errorstr(cache)));
+ "%s\n", tdb_errorstr_compat(cache)));
return false;
}
res = tdb_transaction_start(cache_notrans);
@@ -480,7 +480,7 @@ bool gencache_stabilize(void)
tdb_transaction_cancel(cache);
DEBUG(10, ("Could not start transaction on "
"gencache_notrans.tdb: %s\n",
- tdb_errorstr(cache_notrans)));
+ tdb_errorstr_compat(cache_notrans)));
return false;
}
@@ -503,7 +503,7 @@ bool gencache_stabilize(void)
res = tdb_transaction_commit(cache);
if (res != 0) {
DEBUG(10, ("tdb_transaction_commit on gencache.tdb failed: "
- "%s\n", tdb_errorstr(cache)));
+ "%s\n", tdb_errorstr_compat(cache)));
tdb_transaction_cancel(cache_notrans);
return false;
}
@@ -511,7 +511,7 @@ bool gencache_stabilize(void)
res = tdb_transaction_commit(cache_notrans);
if (res != 0) {
DEBUG(10, ("tdb_transaction_commit on gencache.tdb failed: "
- "%s\n", tdb_errorstr(cache)));
+ "%s\n", tdb_errorstr_compat(cache)));
return false;
}
@@ -556,14 +556,14 @@ static int stabilize_fn(struct tdb_context *tdb, TDB_DATA key, TDB_DATA val,
if (res != 0) {
DEBUG(10, ("Transfer to gencache.tdb failed: %s\n",
- tdb_errorstr(cache)));
+ tdb_errorstr_compat(cache)));
state->error = true;
return -1;
}
if (tdb_delete(cache_notrans, key) != 0) {
DEBUG(10, ("tdb_delete from gencache_notrans.tdb failed: "
- "%s\n", tdb_errorstr(cache_notrans)));
+ "%s\n", tdb_errorstr_compat(cache_notrans)));
state->error = true;
return -1;
}