fix(regTests): assertion failure during load in cancel_replication_immediately (#2371)

* replace DispatchBrief with Await in SetMasterFlagOnAllThreads
This commit is contained in:
Kostas Kyrimis 2024-01-09 16:18:40 +02:00 committed by GitHub
parent 1cab6695d7
commit 0c96f83d1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ template <typename T> void UpdateMax(T* maxv, T current) {
void SetMasterFlagOnAllThreads(bool is_master) {
auto cb = [is_master](auto* pb) { ServerState::tlocal()->is_master = is_master; };
shard_set->pool()->DispatchBrief(cb);
shard_set->pool()->Await(cb);
}
std::optional<cron::cronexpr> InferSnapshotCronExpr() {