1
0
mirror of https://github.com/fluencelabs/redis synced 2025-06-21 04:51:32 +00:00

Removed unecessary creation of Redis objects

This commit is contained in:
Madelyn Olson
2019-07-06 18:32:58 -07:00
parent f674e83215
commit 8fe173452a
2 changed files with 5 additions and 14 deletions

@ -1602,12 +1602,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)) {