revert HBASE-16792 due to test failures
This commit is contained in:
parent
88ff71b91b
commit
193e0d6024
|
@ -43,7 +43,6 @@ import org.apache.hadoop.hbase.util.Bytes;
|
|||
import org.apache.hadoop.hbase.util.ClassSize;
|
||||
import org.apache.hadoop.io.IOUtils;
|
||||
import org.apache.hadoop.io.RawComparator;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
|
||||
/**
|
||||
|
@ -2642,13 +2641,6 @@ public class KeyValue implements ExtendedCell {
|
|||
this.rowLen = Bytes.toShort(this.bytes, this.offset);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
rowLen = -1;
|
||||
bytes = null;
|
||||
offset = 0;
|
||||
length = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getKeyOffset() {
|
||||
return this.offset;
|
||||
|
|
|
@ -139,7 +139,7 @@ abstract class BufferedDataBlockEncoder extends AbstractDataBlockEncoder {
|
|||
protected void invalidate() {
|
||||
valueOffset = -1;
|
||||
tagsCompressedLength = 0;
|
||||
currentKey.clear();
|
||||
currentKey = new KeyValue.KeyOnlyKeyValue();
|
||||
uncompressTags = true;
|
||||
currentBuffer = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue