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

Renamed client context m_applier to m_high_priority

This commit is contained in:
Teemu Ollakka
2018-06-16 15:08:31 +03:00
parent d12513303a
commit 47cb8e604c
9 changed files with 30 additions and 31 deletions

View File

@ -98,7 +98,7 @@ namespace
wsrep::server_context::rm_async)
, cc(sc, sc.client_service(),
wsrep::client_id(1),
wsrep::client_context::m_applier)
wsrep::client_context::m_high_priority)
, tc(cc.transaction())
{
BOOST_REQUIRE(cc.before_command() == 0);
@ -126,7 +126,7 @@ namespace
wsrep::server_context::rm_async)
, cc(sc, sc.client_service(),
wsrep::client_id(1),
wsrep::client_context::m_applier)
wsrep::client_context::m_high_priority)
, tc(cc.transaction())
{
sc.client_service().do_2pc_ = true;

View File

@ -156,7 +156,7 @@ namespace wsrep
{
wsrep::client_context& cc(
*static_cast<wsrep::client_context*>(ctx));
wsrep::client_applier_mode applier_mode(cc);
wsrep::high_priority_context high_priority_context(cc);
const wsrep::transaction_context& tc(cc.transaction());
wsrep::ws_meta ws_meta;
if (replay_result_ == wsrep::provider::success)

View File

@ -39,7 +39,7 @@ namespace wsrep
{
return new wsrep::mock_client_context(
*this, client_service_, ++last_client_id_,
wsrep::client_context::m_applier);
wsrep::client_context::m_high_priority);
}
void release_client_context(wsrep::client_context* client_context)
{
@ -50,7 +50,6 @@ namespace wsrep
const wsrep::ws_meta&)
WSREP_OVERRIDE
{
//
}
void on_connect() WSREP_OVERRIDE { }
void wait_until_connected() WSREP_OVERRIDE { }

View File

@ -15,7 +15,7 @@ namespace
wsrep::server_context::rm_sync)
, cc(sc, sc.client_service(),
wsrep::client_id(1),
wsrep::client_context::m_applier)
wsrep::client_context::m_high_priority)
, ws_handle(1, (void*)1)
, ws_meta(wsrep::gtid(wsrep::id("1"), wsrep::seqno(1)),
wsrep::stid(wsrep::id("1"), 1, 1),
@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE(server_context_streaming)
wsrep::mock_client_context cc(sc,
sc.client_service(),
wsrep::client_id(1),
wsrep::client_context::m_applier);
wsrep::client_context::m_high_priority);
wsrep::ws_handle ws_handle(1, (void*)1);
wsrep::ws_meta ws_meta(wsrep::gtid(wsrep::id("1"), wsrep::seqno(1)),
wsrep::stid(wsrep::id("1"), 1, 1),