don't overload the IO job queue if there are alrady too much entries

This commit is contained in:
antirez
2010-12-31 16:10:09 +01:00
parent a440ecf0d3
commit c4b64a1395
2 changed files with 16 additions and 1 deletions

View File

@ -239,6 +239,8 @@ robj *dsGet(redisDb *db, robj *key, time_t *expire) {
return val;
readerr:
redisLog(REDIS_WARNING,"Read error reading reading %s. Corrupted key?",
buf);
redisPanic("Unrecoverable error reading from disk store");
return NULL; /* unreached */
}