From 25bdf27eaa634f9e54e6252397942beb46f07db5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 31 Oct 2009 13:16:34 +0100 Subject: 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 --- source3/lib/dbwrap_ctdb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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; -- cgit