1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-31 18:24:25 +03:00

Allow storage service implementation to run in client context

If the storage service implementation can operate in
client session context, avoid resetting/restoring globals
when changing to storage service scope in transaction.cpp.
This commit is contained in:
Teemu Ollakka
2023-09-19 14:03:41 +03:00
parent 3d998f9ad6
commit 13e9403eba
2 changed files with 19 additions and 3 deletions

View File

@ -92,6 +92,17 @@ namespace wsrep
virtual void store_globals() = 0;
virtual void reset_globals() = 0;
/**
* Return true if the implementation requires storing
* and restoring global state. Return true by default
* since this is the original behavior. Stateless
* implementations may override.
*/
virtual bool requires_globals() const {
return true;
}
};
}