HDFS-16404. Fix typo for CachingGetSpaceUsed (#3844). Contributed by tomscut.
This commit is contained in:
parent
08c803ea30
commit
39efbc6b6f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue