trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [3/7] incubator-trafodion git commit: Update TransactionalTable.java
Date Fri, 13 Nov 2015 02:45:57 GMT
Update TransactionalTable.java

use KeyValueUtil.length(c) to instead kv.getLength()

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/b14500ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/b14500ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/b14500ca

Branch: refs/heads/master
Commit: b14500caf3dae380ace15f1f2fa740e261f97f05
Parents: bdc8c10
Author: mashengchen <mashengchen@gmail.com>
Authored: Thu Nov 12 13:53:18 2015 +0800
Committer: mashengchen <mashengchen@gmail.com>
Committed: Thu Nov 12 13:53:18 2015 +0800

----------------------------------------------------------------------
 .../hadoop/hbase/client/transactional/TransactionalTable.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b14500ca/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionalTable.java
----------------------------------------------------------------------
diff --git a/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionalTable.java
b/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionalTable.java
index b1df14c..be605b6 100755
--- a/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionalTable.java
+++ b/core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionalTable.java
@@ -773,8 +773,7 @@ public class TransactionalTable extends HTable implements TransactionalTableClie
         if (maxKeyValueSize > 0) {
             for (List<Cell> list : put.getFamilyCellMap().values()) {
                 for (Cell c : list) {
-                    KeyValue kv = new KeyValue(c);
-                    if (kv.getLength() > maxKeyValueSize) {
+                    if (KeyValueUtil.length(c) > maxKeyValueSize) {
                         throw new IllegalArgumentException("KeyValue size too large");
                     }
                 }


Mime
View raw message