hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject git commit: HBASE-12237 HBaseZeroCopyByteString#wrap() should not be called in hbase-client code
Date Mon, 13 Oct 2014 17:27:48 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 caa47654b -> aeb44d10b


HBASE-12237 HBaseZeroCopyByteString#wrap() should not be called in hbase-client code


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

Branch: refs/heads/branch-1
Commit: aeb44d10bda2925781c1b1ffb36a309d3040541f
Parents: caa4765
Author: Ted Yu <tedyu@apache.org>
Authored: Mon Oct 13 17:27:41 2014 +0000
Committer: Ted Yu <tedyu@apache.org>
Committed: Mon Oct 13 17:27:41 2014 +0000

----------------------------------------------------------------------
 .../hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/aeb44d10/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java
index ed7a6af..cf22dd5 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RegionServerCoprocessorRpcChannel.java
@@ -13,7 +13,6 @@ package org.apache.hadoop.hbase.ipc;
 
 import java.io.IOException;
 
-import com.google.protobuf.HBaseZeroCopyByteString;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.classification.InterfaceAudience;
@@ -23,6 +22,7 @@ import org.apache.hadoop.hbase.client.ClusterConnection;
 import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
 import org.apache.hadoop.hbase.protobuf.generated.ClientProtos;
 import org.apache.hadoop.hbase.protobuf.generated.ClientProtos.CoprocessorServiceResponse;
+import org.apache.hadoop.hbase.util.ByteStringer;
 
 
 import com.google.protobuf.Descriptors;
@@ -55,7 +55,7 @@ public class RegionServerCoprocessorRpcChannel extends CoprocessorRpcChannel
{
     }
     final ClientProtos.CoprocessorServiceCall call =
         ClientProtos.CoprocessorServiceCall.newBuilder()
-            .setRow(HBaseZeroCopyByteString.wrap(HConstants.EMPTY_BYTE_ARRAY))
+            .setRow(ByteStringer.wrap(HConstants.EMPTY_BYTE_ARRAY))
             .setServiceName(method.getService().getFullName()).setMethodName(method.getName())
             .setRequest(request.toByteString()).build();
     CoprocessorServiceResponse result =


Mime
View raw message