From 9f60a6bcee16c35eed14408303062a27d6dd0be3 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 14 Feb 2018 18:34:08 +0100 Subject: [PATCH] CG: RDB loading, fix inverted conditional. --- src/rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdb.c b/src/rdb.c index c9114110..5b5701ce 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1670,7 +1670,7 @@ robj *rdbLoadObject(int rdbtype, rio *rdb) { * loading the global PEL. Then set the same shared * NACK structure also in the consumer-specific PEL. */ nack->consumer = consumer; - if (raxInsert(consumer->pel,rawid,sizeof(rawid),nack,NULL)) + if (!raxInsert(consumer->pel,rawid,sizeof(rawid),nack,NULL)) rdbExitReportCorruptRDB("Duplicated consumer PEL entry " " loading a stream consumer " "group");