]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: don't reset incarnation when creating newfs 589/head
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 12 Sep 2013 01:50:51 +0000 (09:50 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Thu, 12 Sep 2013 07:23:43 +0000 (15:23 +0800)
Fixes: #6279
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mon/MDSMonitor.cc

index 9988d8c840288f9833a2007981049d1097a6266d..b2273274521d2f4634a01e8bff0e3d16ab291983 100644 (file)
@@ -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);