Skip to content

Commit

Permalink
javafy storeFile() (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Kotal committed Mar 24, 2017
1 parent 79f53ff commit 086147d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/org/opensolaris/opengrok/history/FileHistoryCache.java
Expand Up @@ -345,6 +345,11 @@ private void storeFile(History histNew, File file, Repository repo,
}
}

private void storeFile(History histNew, File file, Repository repo)
throws HistoryException {
storeFile(histNew, file, repo, false);
}

private void finishStore(Repository repository, String latestRev) {
storeLatestCachedRevision(repository, latestRev);
LOGGER.log(Level.FINE,
Expand Down Expand Up @@ -557,9 +562,10 @@ public History get(File file, Repository repository, boolean withFiles)
(cache.exists() ||
(time > env.getHistoryReaderTimeLimit()))) {
// retrieving the history takes too long, cache it!
storeFile(history, file, repository, false);
storeFile(history, file, repository);
}
}

return history;
}

Expand Down

0 comments on commit 086147d

Please sign in to comment.