HBASE-6359 KeyValue may return incorrect values after readFields() (Dave Revell)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1368964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-08-03 14:02:03 +00:00
parent 00447e866d
commit 2131ef1cf8
1 changed files with 2 additions and 0 deletions

View File

@ -2562,6 +2562,8 @@ public class KeyValue implements Writable, HeapSize {
this.rowCache = null;
this.length = length;
this.offset = 0;
this.timestampCache = -1;
this.keyLength = 0;
this.bytes = new byte[this.length];
in.readFully(this.bytes, 0, this.length);
}