Skip to content

Commit

Permalink
Merge branch 'OpenAtomFoundation:unstable' into HMSET
Browse files Browse the repository at this point in the history
  • Loading branch information
chejinge authored and brother-jin committed Feb 10, 2025
2 parents ff4de98 + 95d4be6 commit 947916b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3432,8 +3432,12 @@ void HelloCmd::Do() {
}

std::string raw;
char version[32];
snprintf(version, sizeof(version), "%d.%d.%d", 5, 0, 0);

std::vector<storage::FieldValue> fvs{
{"server", "redis"},
{"version", version}
};
// just for redis resp2 protocol
fvs.push_back({"proto", "2"});
Expand Down
3 changes: 0 additions & 3 deletions src/pika_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ void HSetCmd::DoInitial() {
}
}



void HSetCmd::Do() {
if (argv_.size() == 4) {
// 处理传统 HSET,设置单个字段-值对
int32_t count = 0;
s_ = db_->storage()->HSet(key_, field_, value_, &count);
if (s_.ok()) {
Expand Down

0 comments on commit 947916b

Please sign in to comment.