hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject hadoop git commit: Addendum fix for HDFS-8323 (adding back a mistakenly deleted line).
Date Thu, 09 Jul 2015 05:52:26 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7285 2c494a843 -> 42a1d0dbd


Addendum fix for HDFS-8323 (adding back a mistakenly deleted line).


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

Branch: refs/heads/HDFS-7285
Commit: 42a1d0dbde2582867669268a3f7ad2476dbf629e
Parents: 2c494a8
Author: Zhe Zhang <zhezhang@cloudera.com>
Authored: Wed Jul 8 22:52:09 2015 -0700
Committer: Zhe Zhang <zhezhang@cloudera.com>
Committed: Wed Jul 8 22:52:09 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/42a1d0db/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
index a238eee..50ad251 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
@@ -5827,6 +5827,8 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
 
       locatedBlock = BlockManager.newLocatedBlock(
           block, file.getLastBlock(), null, -1);
+      blockManager.setBlockToken(locatedBlock,
+          BlockTokenIdentifier.AccessMode.WRITE);
     } finally {
       writeUnlock();
     }


Mime
View raw message