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:
parent
00447e866d
commit
2131ef1cf8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue