hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1399740 - /hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
Date Thu, 18 Oct 2012 17:17:41 GMT
Author: tedyu
Date: Thu Oct 18 17:17:41 2012
New Revision: 1399740

URL: http://svn.apache.org/viewvc?rev=1399740&view=rev
Log:
HBASE-7000 Fix the "INT_VACUOUS_COMPARISON" WARNING in KeyValue class (Liang Xie)


Modified:
    hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java

Modified: hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java?rev=1399740&r1=1399739&r2=1399740&view=diff
==============================================================================
--- hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hbase/trunk/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java Thu Oct
18 17:17:41 2012
@@ -277,7 +277,7 @@ public final class HConstants {
   public static final int DEFAULT_SIZE_RESERVATION_BLOCK = 1024 * 1024 * 5;
 
   /** Maximum value length, enforced on KeyValue construction */
-  public static final int MAXIMUM_VALUE_LENGTH = Integer.MAX_VALUE;
+  public static final int MAXIMUM_VALUE_LENGTH = Integer.MAX_VALUE - 1;
 
   /** name of the file for unique cluster ID */
   public static final String CLUSTER_ID_FILE_NAME = "hbase.id";



Mime
View raw message