Rename copyThroughCache to shouldCopyThroughCache
Sensible suggestion from Terry Parker as a late comment on commit f2efcdc6f769d59722b17e9274932d585035cfb6. Change-Id: I225775bfb6d3d91ae066ff00f9d80a9c02a422c2
This commit is contained in:
parent
1553a6ff55
commit
a3476ced1f
|
@ -210,7 +210,7 @@ else if (eb < 4)
|
|||
statMiss = new AtomicLong();
|
||||
}
|
||||
|
||||
boolean copyThroughCache(long length) {
|
||||
boolean shouldCopyThroughCache(long length) {
|
||||
return length <= maxStreamThroughCache;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue