Skip to content

Commit

Permalink
fix rpushx cmd insert error
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahashen committed Aug 21, 2024
1 parent 3a232f2 commit 16dc6f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pika_command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,7 @@ void InitCmdTable(CmdTable* cmd_table) {
std::make_unique<RPushCmd>(kCmdNameRPush, -3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast);
cmd_table->insert(std::pair<std::string, std::unique_ptr<Cmd>>(kCmdNameRPush, std::move(rpushptr)));
std::unique_ptr<Cmd> rpushxptr =
std::make_unique<RPushxCmd>(kCmdNameRPushx, -3, kCmdFlagsWrite | kCmdFlagsList);
std::make_unique<RPushxCmd>(kCmdNameRPushx, 3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast);
std::make_unique<RPushxCmd>(kCmdNameRPushx, -3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast);
cmd_table->insert(std::pair<std::string, std::unique_ptr<Cmd>>(kCmdNameRPushx, std::move(rpushxptr)));

// Zset
Expand Down

0 comments on commit 16dc6f9

Please sign in to comment.