Browse Source

HADOOP-4771. Correct initialization of the file count for directories with quotas. Contributed by Ruyue Ma.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@727239 13f79535-47bb-0310-9956-ffa450edef68
Konstantin Shvachko 16 years ago
parent
commit
f9f2558f93

+ 4 - 1
CHANGES.txt

@@ -459,6 +459,9 @@ Release 0.20.0 - Unreleased
 
 
     HADOOP-4791. Fix rpm build process for Chukwa. (Eric Yang via cdouglas)
     HADOOP-4791. Fix rpm build process for Chukwa. (Eric Yang via cdouglas)
 
 
+    HADOOP-4771. Correct initialization of the file count for directories 
+    with quotas. (Ruyue Ma via shv)
+
 Release 0.19.1 - Unreleased
 Release 0.19.1 - Unreleased
 
 
   IMPROVEMENTS
   IMPROVEMENTS
@@ -483,7 +486,7 @@ Release 0.19.1 - Unreleased
     HADOOP-4727. Fix a group checking bug in fill_stat_structure(...) in
     HADOOP-4727. Fix a group checking bug in fill_stat_structure(...) in
     fuse-dfs.  (Brian Bockelman via szetszwo)
     fuse-dfs.  (Brian Bockelman via szetszwo)
 
 
-    HADOOP-4836. Correct typos in mapred related documentation.  (Jordà Polo
+    HADOOP-4836. Correct typos in mapred related documentation.  (Jord? Polo
     via szetszwo)
     via szetszwo)
 
 
     HADOOP-4821. Usage description in the Quotas guide documentations are
     HADOOP-4821. Usage description in the Quotas guide documentations are

+ 2 - 0
src/hdfs/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryWithQuota.java

@@ -53,6 +53,7 @@ class INodeDirectoryWithQuota extends INodeDirectory {
     super(permissions, modificationTime);
     super(permissions, modificationTime);
     this.nsQuota = nsQuota;
     this.nsQuota = nsQuota;
     this.dsQuota = dsQuota;
     this.dsQuota = dsQuota;
+    this.nsCount = 1;
   }
   }
   
   
   /** constructor with no quota verification */
   /** constructor with no quota verification */
@@ -62,6 +63,7 @@ class INodeDirectoryWithQuota extends INodeDirectory {
     super(name, permissions);
     super(name, permissions);
     this.nsQuota = nsQuota;
     this.nsQuota = nsQuota;
     this.dsQuota = dsQuota;
     this.dsQuota = dsQuota;
+    this.nsCount = 1;
   }
   }
   
   
   /** Get this directory's namespace quota
   /** Get this directory's namespace quota