]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: don't move on to the next snap immediately 2918/head
authorSamuel Just <sam.just@inktank.com>
Tue, 23 Sep 2014 22:52:08 +0000 (15:52 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 27 Oct 2014 21:08:03 +0000 (14:08 -0700)
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 <sage@redhat.com>
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit c17ac03a50da523f250eb6394c89cc7e93cb4659)

src/osd/ReplicatedPG.cc

index e0912b6154b5b5bd3703f67dbd32d02075a5f046..a3a9e6db9e7aea325c0ba2cc42cc9f30964c8e80 100644 (file)
@@ -7990,7 +7990,7 @@ boost::statechart::result ReplicatedPG::WaitingOnReplicas::react(const SnapTrim&
   context<SnapTrimmer>().need_share_pg_info = true;
 
   // Back to the start
-  post_event(SnapTrim());
+  pg->queue_snap_trim();
   return transit< NotTrimming >();
 }