in 475 line, retval is not initialized.. because of it.
if encoding is not match below if cases.
it can pass redisAssert statement. it can be initialized as DICT_OK.
fix srandmemberWithCountCommand bug in t_set.c
Hi @charsyam, I think that while the code can be improved, initializing the variable is not the right solution.
What I mean is that, currently, setTypeNext() can only return one of the three encodings covered, so if we want to embrace defensive programming I would patch it adding an:
redisPanic("unexpected encoding in returned by setTypeNext()");
Yes, I totally agree with you. so I applied your opinion. I changed my patch according to your opinion.
Use a read-mode order token for distribution queries. Probably fixes #…
changed `send` to `write` (c.f. Issue #777)