diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-09-12 09:50:51 +0800 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2013-09-12 15:23:43 +0800 |
commit | 40613b700b87b495d67793101ae05d6ba58b2a9a (patch) | |
tree | b98462f22cc35a808b61eb50e78c96268cdcd162 | |
parent | 73e626ccea957a7ecca8ee872c6a6350cdcc7cf2 (diff) | |
download | ceph-40613b700b87b495d67793101ae05d6ba58b2a9a.tar.gz |
mon/MDSMonitor: don't reset incarnation when creating newfs
Fixes: #6279
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r-- | src/mon/MDSMonitor.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |