mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(regTests): assertion failure during load in cancel_replication_immediately (#2371)
* replace DispatchBrief with Await in SetMasterFlagOnAllThreads
This commit is contained in:
parent
1cab6695d7
commit
0c96f83d1d
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue