]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: carry last_failure_osd_epoch across `fs new`
authorJohn Spray <john.spray@redhat.com>
Fri, 18 Jul 2014 15:02:57 +0000 (16:02 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 18 Jul 2014 15:53:48 +0000 (16:53 +0100)
So that new MDSs in a new filesystem are guaranteed
to be up to date with anything we blacklisted
from a filesystem coming before.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MDSMonitor.cc

index d0c9c7e713317dd367dfb5559ac51079380cda6d..eed77913f41fc1d153e8c2b0ce9353262e0fadcb 100644 (file)
@@ -1055,6 +1055,7 @@ bool MDSMonitor::management_command(
     newmap.inc = pending_mdsmap.inc;
     pending_mdsmap = newmap;
     pending_mdsmap.epoch = mdsmap.epoch + 1;
+    pending_mdsmap.last_failure_osd_epoch = mdsmap.last_failure_osd_epoch;
     create_new_fs(pending_mdsmap, fs_name, metadata, data);
     ss << "new fs with metadata pool " << metadata << " and data pool " << data;
     r = 0;