From 40613b700b87b495d67793101ae05d6ba58b2a9a Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Thu, 12 Sep 2013 09:50:51 +0800 Subject: [PATCH] mon/MDSMonitor: don't reset incarnation when creating newfs Fixes: #6279 Signed-off-by: Yan, Zheng --- src/mon/MDSMonitor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 9988d8c8402..b2273274521 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -947,6 +947,7 @@ bool MDSMonitor::prepare_command(MMonCommand *m) ss << "this is DANGEROUS and will wipe out the mdsmap's fs, and may clobber data in the new pools you specify. add --yes-i-really-mean-it if you do."; r = -EPERM; } else { + newmap.inc = pending_mdsmap.inc; pending_mdsmap = newmap; pending_mdsmap.epoch = mdsmap.epoch + 1; create_new_fs(pending_mdsmap, metadata, data); -- 2.47.3