Test for ENCODING_SKIPLIST instead of ENCODING_RAW

This commit is contained in:
Pieter Noordhuis
2011-04-06 16:10:40 +02:00
parent 408e12dcaa
commit edfd6ae76b
7 changed files with 28 additions and 28 deletions

View File

@ -483,7 +483,7 @@ int rewriteAppendOnlyFile(char *filename) {
}
zzlNext(zl,&eptr,&sptr);
}
} else if (o->encoding == REDIS_ENCODING_RAW) {
} else if (o->encoding == REDIS_ENCODING_SKIPLIST) {
zset *zs = o->ptr;
dictIterator *di = dictGetIterator(zs->dict);
dictEntry *de;