Skip to content

Commit 95d4be6

Browse files
authored
fix: hello command not return information of pika version (#2989)
1 parent fdcdd8f commit 95d4be6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pika_admin.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,8 +3432,12 @@ void HelloCmd::Do() {
34323432
}
34333433

34343434
std::string raw;
3435+
char version[32];
3436+
snprintf(version, sizeof(version), "%d.%d.%d", 5, 0, 0);
3437+
34353438
std::vector<storage::FieldValue> fvs{
34363439
{"server", "redis"},
3440+
{"version", version}
34373441
};
34383442
// just for redis resp2 protocol
34393443
fvs.push_back({"proto", "2"});

0 commit comments

Comments
 (0)