Skip to content

Commit 773fb95

Browse files
authored
Merge pull request apple#11336 from kakaiu/dcc-assert-false
Fix assert false in consistency check urgent
2 parents 0f1dd6e + 848b9c5 commit 773fb95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fdbserver/tester.actor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ ACTOR Future<Void> runConsistencyCheckerUrgentCore(Reference<AsyncVar<Optional<C
18081808
globalProgressMap.insert(allKeys, false);
18091809
}
18101810

1811-
state int64_t consistencyCheckerId = deterministicRandom()->randomInt64(0, 10000000);
1811+
state int64_t consistencyCheckerId = deterministicRandom()->randomInt64(1, 10000000);
18121812
state int retryTimes = 0;
18131813
state int round = 0;
18141814

@@ -1904,7 +1904,7 @@ ACTOR Future<Void> runConsistencyCheckerUrgentCore(Reference<AsyncVar<Optional<C
19041904
wait(delay(10.0)); // Backoff 10 seconds for the next round
19051905

19061906
// Decide and enforce the consistencyCheckerId for the next round
1907-
consistencyCheckerId = deterministicRandom()->randomInt64(0, 10000000);
1907+
consistencyCheckerId = deterministicRandom()->randomInt64(1, 10000000);
19081908
}
19091909
}
19101910

0 commit comments

Comments
 (0)