Rev 494: validate vnn on node flags change in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Thu Jun 7 08:13:15 GMT 2007
------------------------------------------------------------
revno: 494
revision-id: tridge at samba.org-20070607081314-uvsnbz2gwbqsc0am
parent: tridge at samba.org-20070607080738-9hj4i5vn18ur2987
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Thu 2007-06-07 18:13:14 +1000
message:
validate vnn on node flags change
modified:
common/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
=== modified file 'common/ctdb_daemon.c'
--- a/common/ctdb_daemon.c 2007-06-07 05:18:55 +0000
+++ b/common/ctdb_daemon.c 2007-06-07 08:13:14 +0000
@@ -44,10 +44,16 @@
return;
}
+ if (!ctdb_validate_vnn(ctdb, c->vnn)) {
+ DEBUG(0,("Bad vnn %u in flag_change_handler\n", c->vnn));
+ return;
+ }
+
/* don't get the disconnected flag from the other node */
ctdb->nodes[c->vnn]->flags =
(ctdb->nodes[c->vnn]->flags&NODE_FLAGS_DISCONNECTED)
| (c->flags & ~NODE_FLAGS_DISCONNECTED);
+ DEBUG(2,("Node flags for node %u are now 0x%x\n", c->vnn, ctdb->nodes[c->vnn]->flags));
}
/* called when the "startup" event script has finished */
More information about the samba-cvs
mailing list