Add KeyDB Pro info section

Former-commit-id: d73015fae36ece6db7b088cc55843385688b1866
This commit is contained in:
John Sully 2020-07-11 22:21:12 +00:00
parent 64cfb6df62
commit ede911d65d

View File

@ -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. /* Get info from modules.
* if user asked for "everything" or "modules", or a specific section * if user asked for "everything" or "modules", or a specific section
* that's not found yet. */ * that's not found yet. */