change boolean

This commit is contained in:
Xiaoxi Wang 2021-10-22 13:57:53 -07:00
parent 1a2a838df3
commit 14fa32f208
1 changed files with 2 additions and 2 deletions

View File

@ -3369,7 +3369,7 @@ ACTOR Future<Void> machineTeamRemover(DDTeamCollection* self) {
// To avoid removing machine teams too fast, which is unlikely happen though
wait(delay(SERVER_KNOBS->TR_REMOVE_MACHINE_TEAM_DELAY, TaskPriority::DataDistribution));
if (self->pauseWiggle && self->pauseWiggle->get()) {
if (self->pauseWiggle && !self->pauseWiggle->get()) {
wait(
waitUntilHealthy(self,
SERVER_KNOBS->PERPETUAL_WIGGLE_DELAY + SERVER_KNOBS->TR_REMOVE_SERVER_TEAM_EXTRA_DELAY,
@ -3500,7 +3500,7 @@ ACTOR Future<Void> serverTeamRemover(DDTeamCollection* self) {
// To avoid removing server teams too fast, which is unlikely happen though
wait(delay(removeServerTeamDelay, TaskPriority::DataDistribution));
if (self->pauseWiggle && self->pauseWiggle->get()) {
if (self->pauseWiggle && !self->pauseWiggle->get()) {
wait(
waitUntilHealthy(self,
SERVER_KNOBS->PERPETUAL_WIGGLE_DELAY + SERVER_KNOBS->TR_REMOVE_SERVER_TEAM_EXTRA_DELAY,