------------------------------------------------------------ revno: 296 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell <[EMAIL PROTECTED]> 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);