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:
@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user