Skip to content

Commit

Permalink
Revert: Fix typo in WatchedFileHashCache
Browse files Browse the repository at this point in the history
Summary: This reverts commit Fix typo in WatchedFileHashCache.

Test Plan: revert-hammer

fbshipit-source-id: 2d27e6e
  • Loading branch information
Vladislav Alexeev authored and facebook-github-bot committed May 26, 2017
1 parent b7b3117 commit add6d9e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/com/facebook/buck/util/cache/WatchedFileHashCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,7 @@ public synchronized void onFileSystemChange(WatchmanPathEvent event) {
// Path event, remove the path from the cache as it has been changed, added or deleted.
Path path = event.getPath().normalize();
LOG.verbose("Invalidating %s", path);
// This can't call invalidate() below because we need to call invalidateOldCache() as
// opposed to invalidateOld().
long start = System.nanoTime();
invalidateNew(path);
newCacheInvalidationAggregatedNanoTime += System.nanoTime() - start;
start = System.nanoTime();
invalidateOldCache(path);
oldCacheInvalidationAggregatedNanoTime += System.nanoTime() - start;
numberOfInvalidations++;
invalidate(path);
}

// TODO(rvitale): remove block below after the file hash cache experiment is over.
Expand Down Expand Up @@ -276,7 +268,7 @@ public void invalidate(Path relativePath) {
invalidateNew(relativePath);
newCacheInvalidationAggregatedNanoTime += System.nanoTime() - start;
start = System.nanoTime();
invalidateOld(relativePath);
invalidateOldCache(relativePath);
oldCacheInvalidationAggregatedNanoTime += System.nanoTime() - start;
numberOfInvalidations++;
}
Expand Down

0 comments on commit add6d9e

Please sign in to comment.