Skip to content

Commit

Permalink
Update src/commands/cmd_list.cc
Browse files Browse the repository at this point in the history
Co-authored-by: mwish <1506118561@qq.com>
  • Loading branch information
git-hulk and mapleFU authored Jul 19, 2023
1 parent 389e1f7 commit adae094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/cmd_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class CommandRPopLPUSH : public Commander {
Status Execute(Server *svr, Connection *conn, std::string *output) override {
redis::List list_db(svr->storage, conn->GetNamespace());
std::string elem;
auto s = list_db.LMove(args_[1], args_[2], false, true, &elem);
auto s = list_db.LMove(args_[1], args_[2], /*src_left=*/false, /*dst_left=*/true, &elem);
if (!s.ok() && !s.IsNotFound()) {
return {Status::RedisExecErr, s.ToString()};
}
Expand Down

0 comments on commit adae094

Please sign in to comment.