mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 10:55:46 +02:00
fix: make sure SCRIPT FLUSH concludes (#2565)
InterpreterManager::Reset creates now a new storage for interpreters, and waits for the old ones to be returned. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
881edb501e
commit
908efff7bd
4 changed files with 40 additions and 14 deletions
|
@ -287,7 +287,7 @@ void ScriptMgr::FlushAllScript() {
|
|||
lock_guard lk{mu_};
|
||||
db_.clear();
|
||||
|
||||
shard_set->pool()->Await([](auto index, auto* pb) {
|
||||
shard_set->pool()->AwaitFiberOnAll([](auto* pb) {
|
||||
ServerState* ss = ServerState::tlocal();
|
||||
ss->ResetInterpreter();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue