From be2eff9825cbef2c705534a27ecc18620779ca66 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 19 Feb 2014 20:11:52 +0700 Subject: [PATCH] When replaying fs-events we would not reload changed items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we see a changed item we drop it from the cache and mark the cache as “incomplete”, indicating that the bundle index should be rebuilt, which in turn causes all known items to be fetched, and the cache will thereby reload the updated entries. However, when replaying fs-events, we are in a “rebuild index” state and would not re-rebuild the index incase items were dropped. --- Frameworks/BundlesManager/src/BundlesManager.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Frameworks/BundlesManager/src/BundlesManager.mm b/Frameworks/BundlesManager/src/BundlesManager.mm index fc7e5f98..f9b97977 100644 --- a/Frameworks/BundlesManager/src/BundlesManager.mm +++ b/Frameworks/BundlesManager/src/BundlesManager.mm @@ -328,6 +328,7 @@ static double const kPollInterval = 3*60*60; D(DBF_BundlesManager, bug("%s\n", BSTR(_needsCreateBundlesIndex));); if(_needsCreateBundlesIndex == NO) return; + _needsCreateBundlesIndex = NO; auto pair = create_bundle_index(bundlesPaths, cache); bundles::set_index(pair.first, pair.second); @@ -336,8 +337,6 @@ static double const kPollInterval = 3*60*60; for(auto path : bundlesPaths) cache.copy_heads_for_path(path, std::inserter(newWatchList, newWatchList.end())); [self updateWatchList:newWatchList]; - - _needsCreateBundlesIndex = NO; } - (void)saveBundlesIndex:(id)sender