Skip to content

Commit ee26dcb

Browse files
committed
fix: hello command not return information of pika version
1 parent cd92a46 commit ee26dcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pika_admin.cc

+3
Original file line numberDiff line numberDiff line change
@@ -3303,8 +3303,11 @@ void HelloCmd::Do() {
33033303
}
33043304

33053305
std::string raw;
3306+
char version[32];
3307+
snprintf(version, sizeof(version), "%d.%d.%d", PIKA_MAJOR, PIKA_MINOR, PIKA_PATCH);
33063308
std::vector<storage::FieldValue> fvs{
33073309
{"server", "redis"},
3310+
{"version", version}
33083311
};
33093312
// just for redis resp2 protocol
33103313
fvs.push_back({"proto", "2"});

0 commit comments

Comments
 (0)