summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-09-12 09:50:51 +0800
committerGreg Farnum <greg@inktank.com>2013-10-14 09:40:30 -0700
commitbd073eeac28d8cba969e5746c5e6adcb95820fdf (patch)
tree84d89c88ec7535bf4c2b3e04a842437ab162f4ff
parent3a3724b782c53c92c45624ad02df9f0de77f1545 (diff)
downloadceph-bd073eeac28d8cba969e5746c5e6adcb95820fdf.tar.gz
mon/MDSMonitor: don't reset incarnation when creating newfs
Fixes: #6279 Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> (cherry picked from commit 40613b700b87b495d67793101ae05d6ba58b2a9a) Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r--src/mon/MDSMonitor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc
index d89cc412912..1c34a766e5f 100644
--- a/src/mon/MDSMonitor.cc
+++ b/src/mon/MDSMonitor.cc
@@ -951,6 +951,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);