mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 04:51:32 +00:00
Merge pull request #6265 from madolson/dev-unstable-remove-create-object
Removed unnecessary creation of Redis objects
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user