+ if (stringmatch(pattern,"auto-aof-rewrite-percentage",0)) {
+ addReplyBulkCString(c,"auto-aof-rewrite-percentage");
+ addReplyBulkLongLong(c,server.auto_aofrewrite_perc);
+ matches++;
+ }
+ if (stringmatch(pattern,"auto-aof-rewrite-min-size",0)) {
+ addReplyBulkCString(c,"auto-aof-rewrite-min-size");
+ addReplyBulkLongLong(c,server.auto_aofrewrite_min_size);
+ matches++;
+ }
+ if (stringmatch(pattern,"slave-serve-stale-data",0)) {
+ addReplyBulkCString(c,"slave-serve-stale-data");
+ addReplyBulkCString(c,server.repl_serve_stale_data ? "yes" : "no");
+ matches++;
+ }
+ if (stringmatch(pattern,"hash-max-zipmap-entries",0)) {
+ addReplyBulkCString(c,"hash-max-zipmap-entries");
+ addReplyBulkLongLong(c,server.hash_max_zipmap_entries);
+ matches++;
+ }
+ if (stringmatch(pattern,"hash-max-zipmap-value",0)) {
+ addReplyBulkCString(c,"hash-max-zipmap-value");
+ addReplyBulkLongLong(c,server.hash_max_zipmap_value);
+ matches++;
+ }
+ if (stringmatch(pattern,"list-max-ziplist-entries",0)) {
+ addReplyBulkCString(c,"list-max-ziplist-entries");
+ addReplyBulkLongLong(c,server.list_max_ziplist_entries);
+ matches++;
+ }
+ if (stringmatch(pattern,"list-max-ziplist-value",0)) {
+ addReplyBulkCString(c,"list-max-ziplist-value");
+ addReplyBulkLongLong(c,server.list_max_ziplist_value);
+ matches++;
+ }
+ if (stringmatch(pattern,"set-max-intset-entries",0)) {
+ addReplyBulkCString(c,"set-max-intset-entries");
+ addReplyBulkLongLong(c,server.set_max_intset_entries);
+ matches++;
+ }
+ if (stringmatch(pattern,"zset-max-ziplist-entries",0)) {
+ addReplyBulkCString(c,"zset-max-ziplist-entries");
+ addReplyBulkLongLong(c,server.zset_max_ziplist_entries);
+ matches++;
+ }
+ if (stringmatch(pattern,"zset-max-ziplist-value",0)) {
+ addReplyBulkCString(c,"zset-max-ziplist-value");
+ addReplyBulkLongLong(c,server.zset_max_ziplist_value);
+ matches++;
+ }
+ if (stringmatch(pattern,"lua-time-limit",0)) {
+ addReplyBulkCString(c,"lua-time-limit");
+ addReplyBulkLongLong(c,server.lua_time_limit);
+ matches++;
+ }
+ if (stringmatch(pattern,"slowlog-log-slower-than",0)) {
+ addReplyBulkCString(c,"slowlog-log-slower-than");
+ addReplyBulkLongLong(c,server.slowlog_log_slower_than);
+ matches++;
+ }
+ if (stringmatch(pattern,"slowlog-max-len",0)) {
+ addReplyBulkCString(c,"slowlog-max-len");
+ addReplyBulkLongLong(c,server.slowlog_max_len);
+ matches++;
+ }
+ if (stringmatch(pattern,"loglevel",0)) {
+ char *s;
+
+ switch(server.verbosity) {
+ case REDIS_WARNING: s = "warning"; break;
+ case REDIS_VERBOSE: s = "verbose"; break;
+ case REDIS_NOTICE: s = "notice"; break;
+ case REDIS_DEBUG: s = "debug"; break;
+ default: s = "unknown"; break; /* too harmless to panic */
+ }
+ addReplyBulkCString(c,"loglevel");
+ addReplyBulkCString(c,s);
+ matches++;
+ }
+ setDeferredMultiBulkLength(c,replylen,matches*2);