Skip to content

Commit

Permalink
fix: hello command not return information of pika version
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-spild committed Jan 4, 2025
1 parent cd92a46 commit ee26dcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3303,8 +3303,11 @@ void HelloCmd::Do() {
}

std::string raw;
char version[32];
snprintf(version, sizeof(version), "%d.%d.%d", PIKA_MAJOR, PIKA_MINOR, PIKA_PATCH);
std::vector<storage::FieldValue> fvs{
{"server", "redis"},
{"version", version}
};
// just for redis resp2 protocol
fvs.push_back({"proto", "2"});
Expand Down

0 comments on commit ee26dcb

Please sign in to comment.