mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(server): Implement SCRIPT GC command (#3431)
* fix(server): Implement SCRIPT GC command
This commit is contained in:
parent
f652f10743
commit
82298b8122
7 changed files with 68 additions and 3 deletions
|
@ -189,6 +189,10 @@ void ServerState::ResetInterpreter() {
|
|||
interpreter_mgr_.Reset();
|
||||
}
|
||||
|
||||
void ServerState::AlterInterpreters(std::function<void(Interpreter*)> modf) {
|
||||
interpreter_mgr_.Alter(std::move(modf));
|
||||
}
|
||||
|
||||
ServerState* ServerState::SafeTLocal() {
|
||||
// https://stackoverflow.com/a/75622732
|
||||
asm volatile("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue