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

Replaced replicating mode with local.

The intended purpose for local mode was local storage access without
entering replication hooks. However, the same can be achieved with
high priority mode. Removed replicating mode and use local instead to
denote locally processing clients.
This commit is contained in:
Teemu Ollakka
2018-07-07 12:01:14 +03:00
parent af18a10a49
commit a8be09161c
6 changed files with 33 additions and 49 deletions

View File

@ -18,7 +18,7 @@ namespace
replicating_client_fixture_sync_rm()
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc, wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -38,7 +38,7 @@ namespace
replicating_client_fixture_async_rm()
: sc("s1", "s1", wsrep::server_state::rm_async)
, cc(sc, wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -58,7 +58,7 @@ namespace
replicating_client_fixture_2pc()
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc, wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -79,7 +79,7 @@ namespace
replicating_client_fixture_autocommit()
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc, wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -160,7 +160,7 @@ namespace
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc,
wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -182,7 +182,7 @@ namespace
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc,
wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());
@ -204,7 +204,7 @@ namespace
: sc("s1", "s1", wsrep::server_state::rm_sync)
, cc(sc,
wsrep::client_id(1),
wsrep::client_state::m_replicating)
wsrep::client_state::m_local)
, tc(cc.transaction())
{
cc.open(cc.id());