HDFS-16404. Fix typo for CachingGetSpaceUsed (#3844). Contributed by tomscut.

This commit is contained in:
litao 2022-01-09 16:41:10 +08:00 committed by GitHub
parent 08c803ea30
commit 39efbc6b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,19 +89,19 @@ void init() {
if (!shouldFirstRefresh) {
// Skip initial refresh operation, so we need to do first refresh
// operation immediately in refresh thread.
initRefeshThread(true);
initRefreshThread(true);
return;
}
refresh();
}
initRefeshThread(false);
initRefreshThread(false);
}
/**
* RunImmediately should set true, if we skip the first refresh.
* @param runImmediately The param default should be false.
*/
private void initRefeshThread (boolean runImmediately) {
private void initRefreshThread(boolean runImmediately) {
if (refreshInterval > 0) {
refreshUsed = new Thread(new RefreshThread(this, runImmediately),
"refreshUsed-" + dirPath);