HBASE-17252 Wrong arguments for ValueAndTagRewriteCell in CellUtil

This commit is contained in:
tedyu 2016-12-05 07:41:24 -08:00
parent 94302a3d26
commit 1fad920321
1 changed files with 4 additions and 4 deletions

View File

@ -974,7 +974,7 @@ public final class CellUtil {
@Override @Override
public Cell deepClone() { public Cell deepClone() {
Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone();
return new ValueAndTagRewriteCell(clonedBaseCell, this.tags, this.value); return new ValueAndTagRewriteCell(clonedBaseCell, this.value, this.tags);
} }
} }
@ -1050,10 +1050,10 @@ public final class CellUtil {
public Cell deepClone() { public Cell deepClone() {
Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone(); Cell clonedBaseCell = ((ExtendedCell) this.cell).deepClone();
if (clonedBaseCell instanceof ByteBufferCell) { if (clonedBaseCell instanceof ByteBufferCell) {
return new ValueAndTagRewriteByteBufferCell((ByteBufferCell) clonedBaseCell, this.tags, return new ValueAndTagRewriteByteBufferCell((ByteBufferCell) clonedBaseCell, this.value,
this.value); this.tags);
} }
return new ValueAndTagRewriteCell(clonedBaseCell, this.tags, this.value); return new ValueAndTagRewriteCell(clonedBaseCell, this.value, this.tags);
} }
} }