Browse Source

HADOOP-4669. Use correct operator when evaluating whether access time is
enabled Contributed by Dhruba Borthakur.


git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@721754 13f79535-47bb-0310-9956-ffa450edef68

Christopher Douglas 16 years ago
parent
commit
cbd67f91e9

+ 3 - 0
CHANGES.txt

@@ -227,6 +227,9 @@ Trunk (unreleased changes)
     HADOOP-4677. Fix semantics of FileSystem::getBlockLocations to return
     HADOOP-4677. Fix semantics of FileSystem::getBlockLocations to return
     meaningful values. (Hong Tang via cdouglas)
     meaningful values. (Hong Tang via cdouglas)
 
 
+    HADOOP-4669. Use correct operator when evaluating whether access time is
+    enabled (Dhruba Borthakur via cdouglas)
+
 Release 0.19.1 - Unreleased
 Release 0.19.1 - Unreleased
 
 
   BUG FIXES
   BUG FIXES

+ 1 - 1
src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

@@ -753,7 +753,7 @@ public class FSNamesystem implements FSConstants, FSNamesystemMBean {
     if(inode == null) {
     if(inode == null) {
       return null;
       return null;
     }
     }
-    if (doAccessTime & isAccessTimeSupported()) {
+    if (doAccessTime && isAccessTimeSupported()) {
       dir.setTimes(src, inode, -1, now(), false);
       dir.setTimes(src, inode, -1, now(), false);
     }
     }
     Block[] blocks = inode.getBlocks();
     Block[] blocks = inode.getBlocks();