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
1 changed files with 3 additions and 3 deletions

View File

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