1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-27 09:01:50 +03:00

Fixed dbsim replaying to conform current implementation

Inherited db::replayer_service from db::high_priority_service
and overrode after_apply() and is_replaying() methods to match
current state of library implementation. Changed
db::client_service::replay() to use db::replayer_service instead
of db::high_priority_service().
This commit is contained in:
Teemu Ollakka
2019-01-25 13:44:25 +02:00
parent fc5f59d27e
commit 9a32c72b48
3 changed files with 19 additions and 5 deletions

View File

@ -41,11 +41,11 @@ enum wsrep::provider::status
db::client_service::replay()
{
wsrep::high_priority_context high_priority_context(client_state_);
db::high_priority_service high_priority_service(
db::replayer_service replayer_service(
client_.server_, client_);
auto ret(client_state_.provider().replay(
client_state_.transaction().ws_handle(),
&high_priority_service));
&replayer_service));
if (ret == wsrep::provider::success)
{
++client_.stats_.replays;