From 04aaff4c2b12ec052c4ebb99f51b27a2f08e3003 Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Mon, 20 May 2019 16:11:36 -0500 Subject: [PATCH] Undid the undoing of a fix that was OK to begin with. Cache is in fact supposed to delete the new file not the old one after a flush. --- src/Cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cache.cpp b/src/Cache.cpp index 237b8142f..0167c91b9 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -428,6 +428,7 @@ void Cache::_makeSpace(size_t size) thisMuch -= statbuf.st_size; //logger->log(LOG_WARNING, "Cache: flushing!"); Synchronizer::get()->flushObject(*it); + cachedFile = prefix / *it; // Sync may have renamed it #ifndef NDEBUG assert(replicator->remove(cachedFile, Replicator::LOCAL_ONLY) == 0); #else