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 7c155a5 commit b236d72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3387,10 +3387,15 @@ 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
snprintf(version, sizeof(version), "%d.%d.%d", PIKA_MAJOR, PIKA_MINOR, PIKA_PATCH);
fvs.push_back({"proto", "2"});
fvs.push_back({"mode", "classic"});
int host_role = g_pika_server->role();
Expand Down

0 comments on commit b236d72

Please sign in to comment.