From: Samuel Just Date: Tue, 23 Sep 2014 22:52:08 +0000 (-0700) Subject: ReplicatedPG: don't move on to the next snap immediately X-Git-Tag: v0.86~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2525%2Fhead;p=ceph.git ReplicatedPG: don't move on to the next snap immediately If we have a bunch of trimmed snaps for which we have no objects, we'll spin for a long time. Instead, requeue. Fixes: #9487 Backport: dumpling, firefly, giant Reviewed-by: Sage Weil Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 6d073755889a..4ad3bed40ceb 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -12375,7 +12375,7 @@ boost::statechart::result ReplicatedPG::WaitingOnReplicas::react(const SnapTrim& context().need_share_pg_info = true; // Back to the start - post_event(SnapTrim()); + pg->queue_snap_trim(); return transit< NotTrimming >(); }