diskstore bug fixing and negative cache proper implementation

This commit is contained in:
antirez
2011-01-03 10:47:39 +01:00
parent 120b9ba8f8
commit c15a3887e0
4 changed files with 53 additions and 26 deletions

View File

@ -298,7 +298,7 @@ void dsFlushOneDir(char *path, int dbid) {
id[len] = '\0';
if (atoi(id) != dbid) continue; /* skip this file */
}
if (unlink(path) == -1) {
if (unlink(dp->d_name) == -1) {
redisLog(REDIS_WARNING,
"Can't unlink %s: %s", path, strerror(errno));
redisPanic("Unrecoverable Disk store errore. Existing.");