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

Change unit tests to mimic application behavior on replaying

Allocate separate client state in mock_client_service::replay()
for replaying step.

Added two new test cases for streaming replication replay after
BF abort.
This commit is contained in:
Teemu Ollakka
2023-05-26 12:47:47 +03:00
parent e238c0d240
commit 9070f2a891
3 changed files with 80 additions and 4 deletions

View File

@ -201,7 +201,6 @@ namespace wsrep
wsrep::mock_client_state& cc(
static_cast<wsrep::mock_client_state&>(
high_priority_service.client_state()));
wsrep::high_priority_context high_priority_context(cc);
const wsrep::transaction& tc(cc.transaction());
wsrep::ws_meta ws_meta;
if (replay_result_ == wsrep::provider::success)