HBASE-1347 HTable.incrementColumnValue does not take negative 'amount'

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@770992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-05-02 22:41:52 +00:00
parent 4ce9bb1e86
commit 3e0be569b2
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ import java.nio.ByteBuffer;
import java.util.Comparator;
import java.math.BigInteger;
import org.apache.hadoop.hbase.DoNotRetryIOException;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import org.apache.hadoop.io.RawComparator;
@ -937,7 +936,7 @@ public class Bytes {
val.length);
val = newvalue;
} else if (val.length > SIZEOF_LONG) {
throw new DoNotRetryIOException("Increment Bytes - value too big: " +
throw new IllegalArgumentException("Increment Bytes - value too big: " +
val.length);
}
if(amount == 0) return val;