]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: don't move on to the next snap immediately 2525/head
authorSamuel Just <sam.just@inktank.com>
Tue, 23 Sep 2014 22:52:08 +0000 (15:52 -0700)
committerSage Weil <sage@redhat.com>
Tue, 23 Sep 2014 23:28:04 +0000 (16:28 -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>
src/osd/ReplicatedPG.cc

index 6d073755889ab3f98670ae57bc90ec5f5a6d7469..4ad3bed40ceb8d77af49bac9f70e62281ca76103 100644 (file)
@@ -12375,7 +12375,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 >();
 }