1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

ctdb-daemon: Improve log message when REQ_DMASTER is received on non-lmaster

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs 2015-12-03 17:43:44 +11:00 committed by Amitay Isaacs
parent d66f2c86f7
commit d1f3b5d408

View File

@ -620,9 +620,10 @@ void ctdb_request_dmaster(struct ctdb_context *ctdb, struct ctdb_req_header *hdr
}
if (ctdb_lmaster(ctdb, &key) != ctdb->pnn) {
DEBUG(DEBUG_ALERT,("pnn %u dmaster request to non-lmaster lmaster=%u gen=%u curgen=%u\n",
ctdb->pnn, ctdb_lmaster(ctdb, &key),
hdr->generation, ctdb->vnn_map->generation));
DEBUG(DEBUG_ERR, ("dmaster request to non-lmaster "
"db=%s lmaster=%u gen=%u curgen=%u\n",
ctdb_db->db_name, ctdb_lmaster(ctdb, &key),
hdr->generation, ctdb_db->generation));
ctdb_fatal(ctdb, "ctdb_req_dmaster to non-lmaster");
}