mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(replica) : replica will not sync execution multi shard commands as default (#800)
-sfix(replica) : replica will not sync execution multi shard commands as default
This commit is contained in:
parent
c5e8a627b5
commit
72bad6c5ab
3 changed files with 4 additions and 3 deletions
3
.github/workflows/regression-tests.yml
vendored
3
.github/workflows/regression-tests.yml
vendored
|
@ -58,7 +58,8 @@ jobs:
|
|||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/tests
|
||||
export DRAGONFLY_PATH="${GITHUB_WORKSPACE}/build/dragonfly" # used by PyTests
|
||||
pytest -xvs dragonfly/replication_test.py --df alsologtostderr --df vmodule=replica=2
|
||||
pytest -xvs dragonfly/replication_test.py --df alsologtostderr --df vmodule=replica=2 --df enable_multi_shard_sync=true
|
||||
pytest -xvs dragonfly/replication_test.py --df alsologtostderr --df vmodule=replica=2 --df enable_multi_shard_sync=false
|
||||
|
||||
- name: Send notification on failure
|
||||
if: failure() || cancelled()
|
||||
|
|
|
@ -27,7 +27,7 @@ extern "C" {
|
|||
#include "strings/human_readable.h"
|
||||
#include "util/proactor_base.h"
|
||||
|
||||
ABSL_FLAG(bool, enable_multi_shard_sync, true,
|
||||
ABSL_FLAG(bool, enable_multi_shard_sync, false,
|
||||
"Execute multi shards commands on replica syncrhonized");
|
||||
|
||||
ABSL_DECLARE_FLAG(uint32_t, port);
|
||||
|
|
|
@ -178,7 +178,7 @@ void Transaction::InitMultiData(KeyIndex key_index) {
|
|||
}
|
||||
|
||||
void Transaction::StoreKeysInArgs(KeyIndex key_index, bool rev_mapping) {
|
||||
DCHECK_EQ(key_index.bonus, 0);
|
||||
DCHECK_EQ(key_index.bonus, 0U);
|
||||
|
||||
auto args = cmd_with_full_args_;
|
||||
|
||||
|
|
Loading…
Reference in a new issue