hadoop-hdfs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject svn commit: r1565499 - in /hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs: CHANGES_HDFS-5698.txt src/main/proto/fsimage.proto
Date Fri, 07 Feb 2014 00:23:48 GMT
Author: jing9
Date: Fri Feb  7 00:23:48 2014
New Revision: 1565499

URL: http://svn.apache.org/r1565499
Log:
HDFS-5885. Add annotation for repeated fields in the protobuf definition. Contributed by Haohui
Mai.

Modified:
    hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/CHANGES_HDFS-5698.txt
    hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/fsimage.proto

Modified: hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/CHANGES_HDFS-5698.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/CHANGES_HDFS-5698.txt?rev=1565499&r1=1565498&r2=1565499&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/CHANGES_HDFS-5698.txt
(original)
+++ hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/CHANGES_HDFS-5698.txt
Fri Feb  7 00:23:48 2014
@@ -37,3 +37,6 @@ HDFS-5698 subtasks
 
     HDFS-5884. LoadDelegator should use IOUtils.readFully() to read the magic
     header. (Haohui Mai via jing9)
+
+    HDFS-5885. Add annotation for repeated fields in the protobuf definition.
+    (Haohui Mai via jing9)

Modified: hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/fsimage.proto
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/fsimage.proto?rev=1565499&r1=1565498&r2=1565499&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/fsimage.proto
(original)
+++ hadoop/common/branches/HDFS-5698/hadoop-hdfs-project/hadoop-hdfs/src/main/proto/fsimage.proto
Fri Feb  7 00:23:48 2014
@@ -163,7 +163,7 @@ message FilesUnderConstructionSection {
 message INodeDirectorySection {
   message DirEntry {
     optional uint64 parent = 1;
-    repeated uint64 children = 2;
+    repeated uint64 children = 2 [packed = true];
     optional uint64 numOfRef = 3;
     // repeated INodeReference...
   }
@@ -182,7 +182,7 @@ message SnapshotSection {
   }
 
   optional uint32 snapshotCounter = 1;
-  repeated uint64 snapshottableDir = 2;
+  repeated uint64 snapshottableDir = 2 [packed = true];
   // total number of snapshots
   optional uint32 numSnapshots = 3;
   // repeated Snapshot...
@@ -205,7 +205,7 @@ message SnapshotDiffSection {
     optional INodeSection.INodeDirectory snapshotCopy = 5;
     optional uint32 createdListSize = 6;
     optional uint32 numOfDeletedRef = 7; // number of reference nodes in deleted list
-    repeated uint64 deletedINode = 8; // id of deleted inode
+    repeated uint64 deletedINode = 8 [packed = true]; // id of deleted inode
     // repeated CreatedListEntry (size is specified by createdListSize)
     // repeated INodeReference (reference inodes in deleted list)
   }



Mime
View raw message