From eb6897d76fcb1403447d5f3e5dca3c20c8a95802 Mon Sep 17 00:00:00 2001 From: chejinge Date: Thu, 24 Oct 2024 14:35:52 +0800 Subject: [PATCH 1/2] fix:HSET support multi feild --- src/pika_command.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pika_command.cc b/src/pika_command.cc index 63199c348..25396845f 100644 --- a/src/pika_command.cc +++ b/src/pika_command.cc @@ -388,11 +388,11 @@ void InitCmdTable(CmdTable* cmd_table) { cmd_table->insert(std::pair>(kCmdNameHDel, std::move(hdelptr))); ////HSetCmd std::unique_ptr hsetptr = - std::make_unique(kCmdNameHSet, 4, kCmdFlagsWrite | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsFast); + std::make_unique(kCmdNameHSet, -3, kCmdFlagsWrite | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsFast); cmd_table->insert(std::pair>(kCmdNameHSet, std::move(hsetptr))); ////HGetCmd std::unique_ptr hgetptr = - std::make_unique(kCmdNameHGet, 3, kCmdFlagsRead | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsReadCache |kCmdFlagsFast); + std::make_unique(kCmdNameHGet, -3, kCmdFlagsRead | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsReadCache |kCmdFlagsFast); cmd_table->insert(std::pair>(kCmdNameHGet, std::move(hgetptr))); ////HGetallCmd std::unique_ptr hgetallptr = From d58c4574594cc86e953344dfaa785be01ce67fb6 Mon Sep 17 00:00:00 2001 From: chejinge Date: Thu, 24 Oct 2024 15:15:40 +0800 Subject: [PATCH 2/2] argv --- src/pika_command.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pika_command.cc b/src/pika_command.cc index 25396845f..ac8df1b8d 100644 --- a/src/pika_command.cc +++ b/src/pika_command.cc @@ -388,7 +388,7 @@ void InitCmdTable(CmdTable* cmd_table) { cmd_table->insert(std::pair>(kCmdNameHDel, std::move(hdelptr))); ////HSetCmd std::unique_ptr hsetptr = - std::make_unique(kCmdNameHSet, -3, kCmdFlagsWrite | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsFast); + std::make_unique(kCmdNameHSet, -4, kCmdFlagsWrite | kCmdFlagsHash | kCmdFlagsUpdateCache | kCmdFlagsDoThroughDB | kCmdFlagsFast); cmd_table->insert(std::pair>(kCmdNameHSet, std::move(hsetptr))); ////HGetCmd std::unique_ptr hgetptr =