From 61136d0da0ba061e4b7d723c7343f827e9fa7cc3 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 3 Jun 2007 09:58:51 +1000 Subject: [PATCH] when we get a dmaster error, show the database id in the log so we can track which db it happens for (This used to be ctdb commit 3aedb67f4adf769b605b43f9d39d34ef17b0085d) --- ctdb/common/ctdb_call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/common/ctdb_call.c b/ctdb/common/ctdb_call.c index 6145605b5ab..5ec86f3142f 100644 --- a/ctdb/common/ctdb_call.c +++ b/ctdb/common/ctdb_call.c @@ -394,8 +394,8 @@ void ctdb_request_dmaster(struct ctdb_context *ctdb, struct ctdb_req_header *hdr /* its a protocol error if the sending node is not the current dmaster */ if (header.dmaster != hdr->srcnode) { - DEBUG(0,("vnn %u dmaster request non-master %u dmaster=%u key %08x\n", - ctdb->vnn, hdr->srcnode, header.dmaster, ctdb_hash(&key))); + DEBUG(0,("vnn %u dmaster request non-master %u dmaster=%u key %08x dbid:%08x\n", + ctdb->vnn, hdr->srcnode, header.dmaster, ctdb_hash(&key), c->db_id)); ctdb_fatal(ctdb, "ctdb_req_dmaster from non-master"); return; } -- 2.47.3