]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: keep sending legacy create messages for now
authorSage Weil <sage@redhat.com>
Thu, 5 Apr 2018 18:04:09 +0000 (13:04 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Apr 2018 18:04:09 +0000 (13:04 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 4eb692e10f862fdc55f2573ceffb21023dae460c..2df8b77b4512de79442296fbdee14c45c0aa70f4 100644 (file)
@@ -3343,7 +3343,14 @@ epoch_t OSDMonitor::send_pg_creates(int osd, Connection *con, epoch_t next) cons
 
   MOSDPGCreate *oldm = nullptr; // for pre-mimic OSD compat
   MOSDPGCreate2 *m = nullptr;
-  bool old = !HAVE_FEATURE(con->get_features(), SERVER_MIMIC);
+
+  // for now, keep sending legacy creates.  Until we sort out how to address
+  // racing mon create resends and splits, we are better off with the less
+  // drastic impacts of http://tracker.ceph.com/issues/22165.  The legacy
+  // create message handling path in the OSD still does the old thing where
+  // the pg history is pregenerated and it's instantiated at the latest osdmap
+  // epoch; child pgs are simply not created.
+  bool old = true; // !HAVE_FEATURE(con->get_features(), SERVER_MIMIC);
 
   epoch_t last = 0;
   for (auto epoch_pgs = creating_pgs_by_epoch->second.lower_bound(next);