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-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=496e561d81f2dd1bf92d588fc3afc2431e0a5b98;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 (cherry picked from commit c17ac03a50da523f250eb6394c89cc7e93cb4659) --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index e0912b6154b..a3a9e6db9e7 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -7990,7 +7990,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 >(); }