Skip to content

Commit

Permalink
delete redis_version field from info
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed May 20, 2016
1 parent 09f6e87 commit 09fdfe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/pika_define.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define PIKA_MAX_WORKER_THREAD_NUM 24


const std::string kPikaVersion = "2.0.3";
const std::string kPikaVersion = "2.0.4";
const std::string kPikaPidFile = "pika.pid";

struct ClientInfo {
Expand Down
3 changes: 1 addition & 2 deletions src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void ClientCmd::Do() {
std::string reply = "+";
char buf[128];
while (iter != clients.end()) {
snprintf(buf, sizeof(buf), "addr=%s, fd=%d, idle=%ld\n", iter->ip_port.c_str(), iter->fd, iter->last_interaction == 0 ? 0 : now.tv_sec - iter->last_interaction);
snprintf(buf, sizeof(buf), "addr=%s fd=%d idle=%ld\n", iter->ip_port.c_str(), iter->fd, iter->last_interaction == 0 ? 0 : now.tv_sec - iter->last_interaction);
reply.append(buf);
iter++;
}
Expand Down Expand Up @@ -454,7 +454,6 @@ void InfoCmd::InfoServer(std::string &info) {
uint32_t purge_max;
tmp_stream << "# Server\r\n";
tmp_stream << "pika_version:" << kPikaVersion << "\r\n";
tmp_stream << "redis_version:2.8.21" << "\r\n";
tmp_stream << "os:" << host_info.sysname << " " << host_info.release << " " << host_info.machine << "\r\n";
tmp_stream << "arch_bits:" << (reinterpret_cast<char*>(&host_info.machine) + strlen(host_info.machine) - 2) << "\r\n";
tmp_stream << "process_id:" << getpid() << "\r\n";
Expand Down

0 comments on commit 09fdfe5

Please sign in to comment.