summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-10-31 13:16:34 +0100
committerMichael Adam <obnox@samba.org>2009-11-03 01:02:38 +0100
commit25bdf27eaa634f9e54e6252397942beb46f07db5 (patch)
tree1242e61fbc3b86fe88ba11ce8cda591769a6b490 /source3/lib
parent9fef6a6666d59ee8cc2ef41f96efa3dd2efba30c (diff)
downloadsamba-25bdf27eaa634f9e54e6252397942beb46f07db5.tar.gz
samba-25bdf27eaa634f9e54e6252397942beb46f07db5.tar.bz2
samba-25bdf27eaa634f9e54e6252397942beb46f07db5.zip
s3:dbwrap_ctdb: add debug message to transaction_fetch_start()
for the case that another local process has started a transaction bewteen releasing the transaction_lock record and starting the transaction. Michael
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_ctdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 1f6af437cf..8563990a84 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -419,6 +419,10 @@ again:
}
if ((data.dsize != sizeof(pid_t)) || (*(pid_t *)(data.dptr) != pid)) {
+ DEBUG(3, (__location__ " refetch transaction lock record: "
+ "another local process has started a transaction "
+ "(stored pid [%u] != my pid [%u]) - retrying\n",
+ *(pid_t *)(data.dptr), pid));
tdb_transaction_cancel(ctx->wtdb->tdb);
talloc_free(tmp_ctx);
goto again;