Fix obvious bug. I am not going to write a test as this function doesn't even
seem to be used.
RELNOTES: None.
@@ -82,7 +82,7 @@ public class PerBuildSyscallCache implements UnixGlob.FilesystemCalls {
}
CacheBuilder<Object, Object> readdirCacheBuilder = CacheBuilder.newBuilder();
if (maxReaddirs != UNSET) {
- readdirCacheBuilder = readdirCacheBuilder.maximumSize(maxStats);
+ readdirCacheBuilder = readdirCacheBuilder.maximumSize(maxReaddirs);
}
if (concurrencyLevel != UNSET) {
statCacheBuilder = statCacheBuilder.concurrencyLevel(concurrencyLevel);
