hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject [3/3] hadoop git commit: HDFS-10869. Remove the unused method InodeId#checkId(). Contributed by Jagadesh Kiran N
Date Sun, 25 Sep 2016 05:38:22 GMT
HDFS-10869. Remove the unused method InodeId#checkId(). Contributed by Jagadesh Kiran N

(cherry picked from commit 3e37e243ee041e843e060b17c622ab50c8f9ff11)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/17b66c89
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/17b66c89
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/17b66c89

Branch: refs/heads/branch-2.8
Commit: 17b66c894b1e79fc11f724a97ab1fa623956c4b9
Parents: 41169b7
Author: Brahma Reddy Battula <brahma@apache.org>
Authored: Sun Sep 25 11:02:46 2016 +0530
Committer: Brahma Reddy Battula <brahma@apache.org>
Committed: Sun Sep 25 11:07:21 2016 +0530

----------------------------------------------------------------------
 .../apache/hadoop/hdfs/server/namenode/INodeId.java | 16 ----------------
 1 file changed, 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/17b66c89/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeId.java
----------------------------------------------------------------------
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 10139bf..16c28b2 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
@@ -17,10 +17,7 @@
  */
 package org.apache.hadoop.hdfs.server.namenode;
 
-import java.io.FileNotFoundException;
-
 import org.apache.hadoop.classification.InterfaceAudience;
-import org.apache.hadoop.hdfs.protocol.HdfsConstants;
 import org.apache.hadoop.util.SequentialNumber;
 
 /**
@@ -39,19 +36,6 @@ public class INodeId extends SequentialNumber {
   public static final long ROOT_INODE_ID = LAST_RESERVED_ID + 1;
   public static final long INVALID_INODE_ID = -1;
 
-  /**
-   * To check if the request id is the same as saved id. Don't check fileId
-   * with GRANDFATHER_INODE_ID for backward compatibility.
-   */
-  public static void checkId(long requestId, INode inode)
-      throws FileNotFoundException {
-    if (requestId != HdfsConstants.GRANDFATHER_INODE_ID && requestId != inode.getId())
{
-      throw new FileNotFoundException(
-          "ID mismatch. Request id and saved id: " + requestId + " , "
-              + inode.getId() + " for file " + inode.getFullPathName());
-    }
-  }
-  
   INodeId() {
     super(ROOT_INODE_ID);
   }


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


Mime
View raw message