From c17ac03a50da523f250eb6394c89cc7e93cb4659 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 23 Sep 2014 15:52:08 -0700 Subject: [PATCH] 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 --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 6d073755889ab..4ad3bed40ceb8 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 >(); } -- 2.39.5