diff options
author | antirez <antirez@gmail.com> | 2015-07-26 15:28:00 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-26 15:28:00 +0200 |
commit | 14ff572482cfe02c5ac61a1816cb8099d458e499 (patch) | |
tree | b6836f54761f5f6b0b343ad078b6df43772952a5 /src/notify.c | |
parent | 554bd0e7bd81715e319cafda437ed2aebd44b6e9 (diff) | |
download | redis-14ff572482cfe02c5ac61a1816cb8099d458e499.tar.gz |
RDMF: OBJ_ macros for object related stuff.
Diffstat (limited to 'src/notify.c')
-rw-r--r-- | src/notify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notify.c b/src/notify.c index 6c915e659..9af261ff0 100644 --- a/src/notify.c +++ b/src/notify.c @@ -110,7 +110,7 @@ void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid) { chan = sdscatlen(chan, buf, len); chan = sdscatlen(chan, "__:", 3); chan = sdscatsds(chan, key->ptr); - chanobj = createObject(REDIS_STRING, chan); + chanobj = createObject(OBJ_STRING, chan); pubsubPublishMessage(chanobj, eventobj); decrRefCount(chanobj); } @@ -122,7 +122,7 @@ void notifyKeyspaceEvent(int type, char *event, robj *key, int dbid) { chan = sdscatlen(chan, buf, len); chan = sdscatlen(chan, "__:", 3); chan = sdscatsds(chan, eventobj->ptr); - chanobj = createObject(REDIS_STRING, chan); + chanobj = createObject(OBJ_STRING, chan); pubsubPublishMessage(chanobj, key); decrRefCount(chanobj); } |