From ae26aa93db6d6330f9a8ac6ca38657927c38ab08 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 18 Jan 2018 01:33:29 -0800 Subject: [PATCH] Fix index not updating --- src/import_pipeline.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/import_pipeline.cc b/src/import_pipeline.cc index f346d9a0..9a2b41e4 100644 --- a/src/import_pipeline.cc +++ b/src/import_pipeline.cc @@ -277,8 +277,7 @@ std::vector PreloadFileContents( std::vector file_contents = {contents}; cache_manager->IterateLoadedCaches([&](IndexFile* index) { - optional index_content = - cache_manager->LoadCachedFileContents(index->path); + optional index_content = ReadContent(index->path); if (!index_content) { LOG_S(ERROR) << "Failed to load index content for " << index->path; return; @@ -290,8 +289,7 @@ std::vector PreloadFileContents( }); if (!loaded_primary) { - optional content = - cache_manager->LoadCachedFileContents(path_to_index); + optional content = ReadContent(path_to_index); if (!content) { // Modification timestamp should have detected this already. LOG_S(ERROR) << "Skipping index (file cannot be found): "