You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by he...@apache.org on 2022/01/09 08:41:56 UTC

[hadoop] branch trunk updated: HDFS-16404. Fix typo for CachingGetSpaceUsed (#3844). Contributed by tomscut.

This is an automated email from the ASF dual-hosted git repository.

hexiaoqiao pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 39efbc6  HDFS-16404. Fix typo for CachingGetSpaceUsed (#3844). Contributed by tomscut.
39efbc6 is described below

commit 39efbc6b6fe53abed15f5639edcbaaa2a9dda6d2
Author: litao <to...@gmail.com>
AuthorDate: Sun Jan 9 16:41:10 2022 +0800

    HDFS-16404. Fix typo for CachingGetSpaceUsed (#3844). Contributed by tomscut.
---
 .../src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java
index 58dc82d..a437995 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CachingGetSpaceUsed.java
@@ -89,19 +89,19 @@ public abstract class CachingGetSpaceUsed implements Closeable, GetSpaceUsed {
       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);

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org