Skip to content

Commit

Permalink
Bug fix : Fix error return when SET NX/XX command fails (OpenAtomFoun…
Browse files Browse the repository at this point in the history
  • Loading branch information
gtygo authored Mar 22, 2023
1 parent 58eeaee commit 0abbea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pika_kv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void SetCmd::Do(std::shared_ptr<Partition> partition) {
if (res == 1) {
res_.SetRes(CmdRes::kOk);
} else {
res_.AppendArrayLen(-1);;
res_.AppendStringLen(-1);
}
}
} else {
Expand Down

0 comments on commit 0abbea5

Please sign in to comment.