1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

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)
This commit is contained in:
Ronnie Sahlberg 2007-06-03 09:58:51 +10:00
parent bab73533ce
commit 61136d0da0

View File

@ -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;
}