]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: don't reset incarnation when creating newfs
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 12 Sep 2013 01:50:51 +0000 (09:50 +0800)
committerGreg Farnum <greg@inktank.com>
Mon, 14 Oct 2013 16:40:30 +0000 (09:40 -0700)
Fixes: #6279
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
(cherry picked from commit 40613b700b87b495d67793101ae05d6ba58b2a9a)
Reviewed-by: Greg Farnum <greg@inktank.com>
src/mon/MDSMonitor.cc

index d89cc4129125a8a6c4525acfcc5aac911e9c6615..1c34a766e5ff2811af72d468646e2829c36c46d8 100644 (file)
@@ -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);