Rev 296: don't allow setvnnmap while not frozen in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon May 14 03:48:41 GMT 2007


------------------------------------------------------------
revno: 296
revision-id: tridge at samba.org-20070514034840-njb68t1bfrmcbhtl
parent: tridge at samba.org-20070514034814-tfzpg9mzglmbr2s6
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-05-14 13:48:40 +1000
message:
  don't allow setvnnmap while not frozen
modified:
  common/ctdb_recover.c          ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1
=== modified file 'common/ctdb_recover.c'
--- a/common/ctdb_recover.c	2007-05-12 11:25:26 +0000
+++ b/common/ctdb_recover.c	2007-05-14 03:48:40 +0000
@@ -91,6 +91,11 @@
 {
 	struct ctdb_vnn_map_wire *map = (struct ctdb_vnn_map_wire *)indata.dptr;
 
+	if (ctdb->freeze_mode != CTDB_FREEZE_FROZEN) {
+		DEBUG(0,("Attempt to set vnnmap when not frozen\n"));
+		return -1;
+	}
+
 	talloc_free(ctdb->vnn_map);
 
 	ctdb->vnn_map = talloc(ctdb, struct ctdb_vnn_map);



More information about the samba-cvs mailing list