mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge PR #25622 into master
* refs/pull/25622/head: Objecter.cc: make op resend logic more readable Reviewed-by: Gregory Farnum <gfarnum@redhat.com> Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn> Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
commit
3a2b090623
@ -2870,13 +2870,12 @@ int Objecter::_calc_target(op_target_t *t, Connection *con, bool any_change)
|
||||
force_resend = true;
|
||||
}
|
||||
|
||||
bool unpaused = !target_should_be_paused(t);
|
||||
if (t->paused && unpaused) {
|
||||
t->paused = false;
|
||||
} else {
|
||||
t->paused = !unpaused;
|
||||
unpaused = false;
|
||||
bool unpaused = false;
|
||||
bool should_be_paused = target_should_be_paused(t);
|
||||
if (t->paused && !should_be_paused) {
|
||||
unpaused = true;
|
||||
}
|
||||
t->paused = should_be_paused;
|
||||
|
||||
bool legacy_change =
|
||||
t->pgid != pgid ||
|
||||
|
Loading…
Reference in New Issue
Block a user