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)
context<SnapTrimmer>().need_share_pg_info = true;
// Back to the start
- post_event(SnapTrim());
+ pg->queue_snap_trim();
return transit< NotTrimming >();
}