Merge pull request #6265 from madolson/dev-unstable-remove-create-object

Removed unnecessary creation of Redis objects
This commit is contained in:
Salvatore Sanfilippo
2019-07-23 17:05:10 +02:00
committed by GitHub
2 changed files with 5 additions and 14 deletions

View File

@ -1470,12 +1470,10 @@ void configGetCommand(client *c) {
matches++;
}
if (stringmatch(pattern,"notify-keyspace-events",1)) {
robj *flagsobj = createObject(OBJ_STRING,
keyspaceEventsFlagsToString(server.notify_keyspace_events));
sds flags = keyspaceEventsFlagsToString(server.notify_keyspace_events);
addReplyBulkCString(c,"notify-keyspace-events");
addReplyBulk(c,flagsobj);
decrRefCount(flagsobj);
addReplyBulkSds(c,flags);
matches++;
}
if (stringmatch(pattern,"bind",1)) {