fix row size "returned" via bufOut (currently ignored). patch by Jun Rao; reviewed by jbellis for #33

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@766744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2009-04-20 16:38:32 +00:00
parent 6be087a80a
commit 234d0895ad
1 changed files with 2 additions and 2 deletions

View File

@ -903,7 +903,7 @@ public class SequenceFile
* one booleanfor deleted or not +
* one int for number of columns
*/
bufOut.writeInt(dataSize + utfPrefix_ + cfName.length() + 4 + 1);
bufOut.writeInt(dataSize + utfPrefix_ + cfName.length() + 4 + 8 + 4);
/* write the column family name */
bufOut.writeUTF(cfName);
/* write local deletion time */
@ -991,7 +991,7 @@ public class SequenceFile
* one booleanfor deleted or not +
* one int for number of columns
*/
bufOut.writeInt(dataSizeReturned + utfPrefix_ + cfName.length() + 4 + 1);
bufOut.writeInt(dataSizeReturned + utfPrefix_ + cfName.length() + 4 + 8 + 4);
/* write the column family name */
bufOut.writeUTF(cfName);
/* write local deletion time */