diff options
author | Madelyn Olson <matolson@amazon.com> | 2019-07-06 18:32:58 -0700 |
---|---|---|
committer | Madelyn Olson <matolson@amazon.com> | 2019-07-22 22:52:16 -0700 |
commit | 8fe173452ab28c062ecc38e31a7b51f93c6150c7 (patch) | |
tree | b4ef310aae3e6bcbd820a73a1e737317d4a9f9a5 /src/config.c | |
parent | f674e83215af5f15096bf53a27de6c4ccf21faae (diff) | |
download | redis-8fe173452ab28c062ecc38e31a7b51f93c6150c7.tar.gz |
Removed unecessary creation of Redis objects
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c index 7f0e9af89..ddf31d168 100644 --- a/src/config.c +++ b/src/config.c @@ -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)) { |