Skip to content

Commit

Permalink
Consensus pika dont support multi-key commands (OpenAtomFoundation#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiami committed Mar 20, 2020
1 parent a0fecc2 commit ca88b74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pika_command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ void Cmd::Execute() {
ProcessFlushAllCmd();
} else if (name_ == kCmdNameInfo || name_ == kCmdNameConfig) {
ProcessDoNotSpecifyPartitionCmd();
} else if (is_single_partition() || g_pika_conf->classic_mode()) {
} else if (is_single_partition() ||
(g_pika_conf->classic_mode() && g_pika_conf->consensus_level() == 0)) {
ProcessSinglePartitionCmd();
} else if (is_multi_partition()) {
ProcessMultiPartitionCmd();
Expand Down

0 comments on commit ca88b74

Please sign in to comment.