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 ji...@apache.org on 2016/09/26 09:09:04 UTC
[46/50] [abbrv] hadoop git commit: HDFS-10869. Remove the unused
method InodeId#checkId(). Contributed by Jagadesh Kiran N
HDFS-10869. Remove the unused method InodeId#checkId(). Contributed by Jagadesh Kiran N
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3e37e243
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3e37e243
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3e37e243
Branch: refs/heads/MAPREDUCE-6608
Commit: 3e37e243ee041e843e060b17c622ab50c8f9ff11
Parents: 4d16d2d
Author: Brahma Reddy Battula <br...@apache.org>
Authored: Sun Sep 25 11:02:46 2016 +0530
Committer: Brahma Reddy Battula <br...@apache.org>
Committed: Sun Sep 25 11:02:46 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/3e37e243/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