mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
osd: clear requeue_scrub_on_unblock flag after requeue scrub
We'd better clear requeue_scrub_on_unblock flag after successfully requeuing scrub, this is for: 1. if a newly initiated scrub is blocked by objectcontext again, reset requeue_scrub_on_unblock to true will be satisfied enough to meet such an appeal. 2. so we don't push pg to the scrub queue when we don't want to by accident. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
18a5fddb90
commit
f30db90465
@ -9288,8 +9288,10 @@ void ReplicatedPG::kick_object_context_blocked(ObjectContextRef obc)
|
||||
objects_blocked_on_snap_promotion.erase(i);
|
||||
}
|
||||
|
||||
if (obc->requeue_scrub_on_unblock)
|
||||
if (obc->requeue_scrub_on_unblock) {
|
||||
obc->requeue_scrub_on_unblock = false;
|
||||
requeue_scrub();
|
||||
}
|
||||
}
|
||||
|
||||
SnapSetContext *ReplicatedPG::create_snapset_context(const hobject_t& oid)
|
||||
|
Loading…
Reference in New Issue
Block a user