Enabled object encoding for multiple keys in MSET. Added a test for memory leaks in test-redis.tcl when running on Mac OS X

This commit is contained in:
antirez
2009-11-28 16:55:05 +01:00
parent 791445b745
commit 1751139117
3 changed files with 10 additions and 2 deletions

View File

@ -3059,6 +3059,7 @@ static void msetGenericCommand(redisClient *c, int nx) {
for (j = 1; j < c->argc; j += 2) {
int retval;
tryObjectEncoding(c->argv[j+1]);
retval = dictAdd(c->db->dict,c->argv[j],c->argv[j+1]);
if (retval == DICT_ERR) {
dictReplace(c->db->dict,c->argv[j],c->argv[j+1]);