Rev 565: log the generation numbers to give a hint about this bug
in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Sun Jul 8 09:36:55 GMT 2007
------------------------------------------------------------
revno: 565
revision-id: tridge at samba.org-20070708093655-b46glrwqb1qudg2r
parent: tridge at samba.org-20070708004130-v9rahumpzbkgry10
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Sun 2007-07-08 19:36:55 +1000
message:
log the generation numbers to give a hint about this bug
modified:
server/ctdb_call.c ctdb_call.c-20061128065342-to93h6eejj5kon81-1
=== modified file 'server/ctdb_call.c'
--- a/server/ctdb_call.c 2007-06-07 12:26:27 +0000
+++ b/server/ctdb_call.c 2007-07-08 09:36:55 +0000
@@ -311,8 +311,9 @@
}
if (ctdb_lmaster(ctdb, &key) != ctdb->vnn) {
- DEBUG(0,("vnn %u dmaster request to non-lmaster lmaster=%u\n",
- ctdb->vnn, ctdb_lmaster(ctdb, &key)));
+ DEBUG(0,("vnn %u dmaster request to non-lmaster lmaster=%u gen=%u curgen=%u\n",
+ ctdb->vnn, ctdb_lmaster(ctdb, &key),
+ hdr->generation, ctdb->vnn_map->generation));
ctdb_fatal(ctdb, "ctdb_req_dmaster to non-lmaster");
}
@@ -321,9 +322,9 @@
/* 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 dbid 0x%08x\n",
+ DEBUG(0,("vnn %u dmaster request non-master %u dmaster=%u key %08x dbid 0x%08x gen=%u curgen=%u\n",
ctdb->vnn, hdr->srcnode, header.dmaster, ctdb_hash(&key),
- ctdb_db->db_id));
+ ctdb_db->db_id, hdr->generation, ctdb->vnn_map->generation));
ctdb_fatal(ctdb, "ctdb_req_dmaster from non-master");
return;
}
More information about the samba-cvs
mailing list