don't use small shared integer objects when disk store is enabled

This commit is contained in:
antirez
2010-12-30 18:17:01 +01:00
parent 82ef6ebf73
commit 98a9abb66d
4 changed files with 17 additions and 8 deletions

View File

@ -167,7 +167,7 @@ void _addReplyStringToList(redisClient *c, char *s, size_t len) {
void addReply(redisClient *c, robj *obj) {
if (_installWriteEvent(c) != REDIS_OK) return;
redisAssert(!server.ds_enabled || obj->storage == REDIS_DS_MEMORY);
redisAssert(!server.ds_enabled || obj->storage != REDIS_DS_SAVING);
/* This is an important place where we can avoid copy-on-write
* when there is a saving child running, avoiding touching the