1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Operation context pointer for client state

This commit is contained in:
Teemu Ollakka
2022-07-13 10:31:03 +03:00
parent 7075524dc0
commit 5d66ce8a4e
2 changed files with 16 additions and 0 deletions

View File

@ -764,6 +764,17 @@ int wsrep::client_state::sync_wait(int timeout)
return ret;
}
void wsrep::client_state::set_operation_context(
wsrep::operation_context* context)
{
current_context_ = context;
}
wsrep::operation_context* wsrep::client_state::operation_context()
{
return current_context_;
}
///////////////////////////////////////////////////////////////////////////////
// Private //
///////////////////////////////////////////////////////////////////////////////