Rename copyThroughCache to shouldCopyThroughCache

Sensible suggestion from Terry Parker as a late comment on
commit f2efcdc6f769d59722b17e9274932d585035cfb6.

Change-Id: I225775bfb6d3d91ae066ff00f9d80a9c02a422c2
This commit is contained in:
Shawn Pearce 2015-04-24 10:22:28 -07:00
parent 1553a6ff55
commit a3476ced1f
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ else if (eb < 4)
statMiss = new AtomicLong();
}
boolean copyThroughCache(long length) {
boolean shouldCopyThroughCache(long length) {
return length <= maxStreamThroughCache;
}

View File

@ -470,7 +470,7 @@ void copyPackAsIs(PackOutputStream out, boolean validate, DfsReader ctx)
throws IOException {
MessageDigest md = initCopyPack(out, validate, ctx);
long p;
if (cache.copyThroughCache(length))
if (cache.shouldCopyThroughCache(length))
p = copyPackThroughCache(out, ctx, md);
else
p = copyPackBypassCache(out, ctx, md);