diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-09-04 16:09:09 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-09-06 14:08:23 +0300 |
commit | f6136dd036a2b48e1cc16455876aa787112685cd (patch) | |
tree | 4e6b598d59624ee77675ff782277b0079b453b02 /test | |
parent | cb49635231f115be6bb581131445e6bcdb773a10 (diff) |
Remove csync_s::replica
The only difference with csync_s::current is that it's
assigned the value of csync_s::local::type and
csync_s::remote::type, which never change. So might as
well only use the "current" field with constants.
Diffstat (limited to 'test')
-rw-r--r-- | test/csync/vio_tests/check_vio.cpp | 2 | ||||
-rw-r--r-- | test/csync/vio_tests/check_vio_ext.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/csync/vio_tests/check_vio.cpp b/test/csync/vio_tests/check_vio.cpp index cdb36a6a0..6f4f3a9b4 100644 --- a/test/csync/vio_tests/check_vio.cpp +++ b/test/csync/vio_tests/check_vio.cpp @@ -51,7 +51,7 @@ static int setup(void **state) csync_create(&csync, "/tmp/csync1"); - csync->replica = LOCAL_REPLICA; + csync->current = LOCAL_REPLICA; *state = csync; return 0; diff --git a/test/csync/vio_tests/check_vio_ext.cpp b/test/csync/vio_tests/check_vio_ext.cpp index d93bdef01..faf5804e7 100644 --- a/test/csync/vio_tests/check_vio_ext.cpp +++ b/test/csync/vio_tests/check_vio_ext.cpp @@ -99,7 +99,7 @@ static int setup_testenv(void **state) { csync_create(&(mystate->csync), "/tmp/csync1"); - mystate->csync->replica = LOCAL_REPLICA; + mystate->csync->current = LOCAL_REPLICA; *state = mystate; return 0; |