hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhr...@apache.org
Subject svn commit: r1055973 - in /hadoop/hdfs/trunk: CHANGES.txt src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
Date Thu, 06 Jan 2011 17:59:51 GMT
Author: dhruba
Date: Thu Jan  6 17:59:51 2011
New Revision: 1055973

URL: http://svn.apache.org/viewvc?rev=1055973&view=rev
Log:
HDFS-1463. Accesstime of a file is not updated in safeMode. (dhruba)


Modified:
    hadoop/hdfs/trunk/CHANGES.txt
    hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

Modified: hadoop/hdfs/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/CHANGES.txt?rev=1055973&r1=1055972&r2=1055973&view=diff
==============================================================================
--- hadoop/hdfs/trunk/CHANGES.txt (original)
+++ hadoop/hdfs/trunk/CHANGES.txt Thu Jan  6 17:59:51 2011
@@ -57,6 +57,8 @@ Trunk (unreleased changes)
     HDFS-1540. Make Datanode handle errors from RPC calls to namenode
     more elegantly. (dhruba)
 
+    HDFS-1463. Accesstime of a file is not updated in safeMode. (dhruba)
+
 Release 0.22.0 - Unreleased
 
   NEW FEATURES

Modified: hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
URL: http://svn.apache.org/viewvc/hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java?rev=1055973&r1=1055972&r2=1055973&view=diff
==============================================================================
--- hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java (original)
+++ hadoop/hdfs/trunk/src/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java Thu
Jan  6 17:59:51 2011
@@ -827,6 +827,12 @@ public class FSNamesystem implements FSC
       }  else { // second attempt is with  write lock
         writeLock(); // writelock is needed to set accesstime
       }
+
+      // if the namenode is in safemode, then do not update access time
+      if (isInSafeMode()) {
+        doAccessTime = false;
+      }
+
       try {
         long now = now();
         INodeFile inode = dir.getFileINode(src);



Mime
View raw message