diskstore cache bug fixing

This commit is contained in:
antirez
2010-12-30 18:37:46 +01:00
parent 98a9abb66d
commit 8d51fb6a80
3 changed files with 19 additions and 4 deletions

View File

@ -21,6 +21,7 @@ robj *lookupKey(redisDb *db, robj *key) {
/* FIXME: change this code to just wait for our object to
* get out of the IO Job. */
waitEmptyIOJobsQueue();
processAllPendingIOJobs();
redisAssert(val->storage != REDIS_DS_SAVING);
}
server.stat_keyspace_hits++;