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 aa...@apache.org on 2019/04/11 01:02:26 UTC

[hadoop] branch trunk updated: HDFS-12245. Fix INodeId javadoc

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

aajisaka 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 586826f  HDFS-12245. Fix INodeId javadoc
586826f is described below

commit 586826fe99038d4fcfa07a8a9a6b19cdf301aaf7
Author: Adam Antal <ad...@cloudera.com>
AuthorDate: Wed Apr 3 12:14:54 2019 +0200

    HDFS-12245. Fix INodeId javadoc
    
    Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
 .../main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java
index 16c28b2..ef87ee8 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java
@@ -21,9 +21,9 @@ import org.apache.hadoop.classification.InterfaceAudience;
 import org.apache.hadoop.util.SequentialNumber;
 
 /**
- * An id which uniquely identifies an inode. Id 1 to 1000 are reserved for
+ * An id which uniquely identifies an inode. Id 1 to 16384 are reserved for
  * potential future usage. The id won't be recycled and is not expected to wrap
- * around in a very long time. Root inode id is always 1001. Id 0 is used for
+ * around in a very long time. Root inode id is always 16385. Id 0 is used for
  * backward compatibility support.
  */
 @InterfaceAudience.Private
@@ -32,8 +32,8 @@ public class INodeId extends SequentialNumber {
    * The last reserved inode id. InodeIDs are allocated from LAST_RESERVED_ID +
    * 1.
    */
-  public static final long LAST_RESERVED_ID = 2 << 14 - 1;
-  public static final long ROOT_INODE_ID = LAST_RESERVED_ID + 1;
+  public static final long LAST_RESERVED_ID = 1 << 14; // 16384
+  public static final long ROOT_INODE_ID = LAST_RESERVED_ID + 1; // 16385
   public static final long INVALID_INODE_ID = -1;
 
   INodeId() {


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