From 16dc6f9bade34369fe273ecfa42a84b3e016c30b Mon Sep 17 00:00:00 2001 From: shenmengju Date: Wed, 21 Aug 2024 10:09:44 +0800 Subject: [PATCH] fix rpushx cmd insert error --- src/pika_command.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pika_command.cc b/src/pika_command.cc index bab8dd93f6..8ba3e7ba6c 100644 --- a/src/pika_command.cc +++ b/src/pika_command.cc @@ -507,8 +507,7 @@ void InitCmdTable(CmdTable* cmd_table) { std::make_unique(kCmdNameRPush, -3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast); cmd_table->insert(std::pair>(kCmdNameRPush, std::move(rpushptr))); std::unique_ptr rpushxptr = - std::make_unique(kCmdNameRPushx, -3, kCmdFlagsWrite | kCmdFlagsList); - std::make_unique(kCmdNameRPushx, 3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast); + std::make_unique(kCmdNameRPushx, -3, kCmdFlagsWrite | kCmdFlagsList | kCmdFlagsDoThroughDB | kCmdFlagsUpdateCache | kCmdFlagsFast); cmd_table->insert(std::pair>(kCmdNameRPushx, std::move(rpushxptr))); // Zset