]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: request osdmap update in the right block 17828/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 20 Sep 2017 05:18:35 +0000 (01:18 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 20 Sep 2017 05:18:35 +0000 (01:18 -0400)
Fixes: http://tracker.ceph.com/issues/21428
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/PrimaryLogPG.cc

index de0ea8df453771e03f4dcc14c64af3af3a8afac7..563686dd010fe087f092a56a1d434f26429e4e90 100644 (file)
@@ -1646,7 +1646,6 @@ void PrimaryLogPG::do_request(
             << p->first << " not empty, queueing" << dendl;
     p->second.push_back(op);
     op->mark_delayed("waiting_for_map not empty");
-    osd->request_osdmap_update(op->min_epoch);
     return;
   }
   if (!have_same_or_newer_map(op->min_epoch)) {
@@ -1654,6 +1653,7 @@ void PrimaryLogPG::do_request(
             << ", queue on waiting_for_map " << op->get_source() << dendl;
     waiting_for_map[op->get_source()].push_back(op);
     op->mark_delayed("op must wait for map");
+    osd->request_osdmap_update(op->min_epoch);
     return;
   }