From ead6e22865c23034054af26bfffbf24651ba95dc Mon Sep 17 00:00:00 2001 From: John Sully Date: Sat, 11 Jul 2020 22:21:12 +0000 Subject: [PATCH] Add KeyDB Pro info section Former-commit-id: d73015fae36ece6db7b088cc55843385688b1866 --- src/server.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/server.cpp b/src/server.cpp index e3704870d..4fae6e2af 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -5095,6 +5095,16 @@ sds genRedisInfoString(const char *section) { } } + if (allsections || defsections || !strcasecmp(section,"keydb")) { + if (sections++) info = sdscat(info,"\r\n"); + info = sdscatprintf(info, + "# KeyDB\r\n" + "variant:pro\r\n" + "license_status:%s\r\n", + cserver.license_key ? "OK" : "Trial" + ); + } + /* Get info from modules. * if user asked for "everything" or "modules", or a specific section * that's not found yet. */