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:26:53 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 fe8a401da -> 763d3f827


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/763d3f82
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/763d3f82
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/763d3f82

Branch: refs/heads/0.98
Commit: 763d3f82748441c7608b3e930f2a9d35b131ae35
Parents: fe8a401
Author: Ted Yu <tedyu@apache.org>
Authored: Mon Oct 13 17:26:43 2014 +0000
Committer: Ted Yu <tedyu@apache.org>
Committed: Mon Oct 13 17:26:43 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/763d3f82/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 6a174e5..845bde1 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.HConnection;
 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;
@@ -56,7 +56,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