mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Pass ws_handle as const reference to provider replay()
This commit is contained in:
@ -89,8 +89,7 @@ namespace wsrep
|
||||
replay() WSREP_OVERRIDE
|
||||
{
|
||||
enum wsrep::provider::status ret(
|
||||
provider_.replay(const_cast<wsrep::ws_handle&>(
|
||||
client_state_.transaction().ws_handle()),
|
||||
provider_.replay(client_state_.transaction().ws_handle(),
|
||||
&client_state_));
|
||||
++replays_;
|
||||
return ret;
|
||||
|
@ -152,7 +152,8 @@ namespace wsrep
|
||||
return release_result_;
|
||||
}
|
||||
|
||||
enum wsrep::provider::status replay(wsrep::ws_handle&, void* ctx)
|
||||
enum wsrep::provider::status replay(const wsrep::ws_handle&,
|
||||
void* ctx)
|
||||
{
|
||||
wsrep::client_state& cc(
|
||||
*static_cast<wsrep::client_state*>(ctx));
|
||||
|
Reference in New Issue
Block a user