HBASE-8781 ImmutableBytesWritable constructor with another IBW as param need to consider the offset of the passed IBW

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1499804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
anoopsamjohn 2013-07-04 16:43:01 +00:00
parent eed3a47343
commit ae7685310b
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ implements WritableComparable<ImmutableBytesWritable> {
* @param ibw the value to set this ImmutableBytesWritable to.
*/
public ImmutableBytesWritable(final ImmutableBytesWritable ibw) {
this(ibw.get(), 0, ibw.getSize());
this(ibw.get(), ibw.getOffset(), ibw.getSize());
}
/**