diff --git a/src/server/server.cc b/src/server/server.cc index 2e4a83b914b..6ac34be64fc 100644 --- a/src/server/server.cc +++ b/src/server/server.cc @@ -845,6 +845,7 @@ void Server::GetServerInfo(std::string *info) { string_stream << "redis_version:" << REDIS_VERSION << "\r\n"; string_stream << "git_sha1:" << GIT_COMMIT << "\r\n"; string_stream << "kvrocks_git_sha1:" << GIT_COMMIT << "\r\n"; + string_stream << "redis_mode:" << (config_->cluster_enabled ? "cluster" : "standalone") << "\r\n"; string_stream << "os:" << name.sysname << " " << name.release << " " << name.machine << "\r\n"; #ifdef __GNUC__ string_stream << "gcc_version:" << __GNUC__ << "." << __GNUC_MINOR__ << "." << __GNUC_PATCHLEVEL__ << "\r\n";