Author: anoopsamjohn
Date: Thu Jul  4 16:43:35 2013
New Revision: 1499805

URL: http://svn.apache.org/r1499805
Log:
HBASE-8781 ImmutableBytesWritable constructor with another IBW as param need to 
consider the offset of the passed IBW

Modified:
    
hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java

Modified: 
hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java
URL: 
http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java?rev=1499805&r1=1499804&r2=1499805&view=diff
==============================================================================
--- 
hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java
 (original)
+++ 
hbase/branches/0.95/hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java
 Thu Jul  4 16:43:35 2013
@@ -71,7 +71,7 @@ implements WritableComparable<ImmutableB
    * @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());
   }
 
   /**


Reply via email to