1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-13 04:01:32 +03:00

Pass ws_handle as const reference to provider replay()

This commit is contained in:
Teemu Ollakka
2018-06-19 09:36:15 +03:00
parent d1a1e298e9
commit 0e4c7f16a9
7 changed files with 9 additions and 10 deletions

View File

@ -38,8 +38,7 @@ enum wsrep::provider::status
db::client_service::replay()
{
wsrep::high_priority_context high_priority_context(client_state_);
auto ret(provider_.replay(const_cast<wsrep::ws_handle&>(
client_state_.transaction().ws_handle()),
auto ret(provider_.replay(client_state_.transaction().ws_handle(),
&client_state_));
if (ret == wsrep::provider::success)
{