hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject git commit: HBASE-11437 Modify cell tag handling code to treat the length as unsigned. - Addendum
Date Mon, 14 Jul 2014 09:55:38 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 39100cb1d -> 620616050


HBASE-11437 Modify cell tag handling code to treat the length as unsigned. - Addendum


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

Branch: refs/heads/branch-1
Commit: 620616050e0d7d40f435715dedf9f4d0f130a24f
Parents: 39100cb
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Mon Jul 14 15:25:12 2014 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Mon Jul 14 15:25:12 2014 +0530

----------------------------------------------------------------------
 .../hadoop/hbase/security/visibility/VisibilityConstants.java    | 4 ++--
 .../apache/hadoop/hbase/security/visibility/VisibilityUtils.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/62061605/hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityConstants.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityConstants.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityConstants.java
index bc84207..f98efec 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityConstants.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityConstants.java
@@ -46,7 +46,7 @@ public final class VisibilityConstants {
    **/
   public static final byte VISIBILITY_SERIALIZATION_VERSION = 1;
   /** Byte representation of the visibility_serialization_version **/
-  public static final byte[] SORTED_ORDINAL_SERIALIZATION_FORMAT = Bytes
-      .toBytes(VISIBILITY_SERIALIZATION_VERSION);
+  public static final byte[] SORTED_ORDINAL_SERIALIZATION_FORMAT =
+      new byte[] { VISIBILITY_SERIALIZATION_VERSION };
 
 }

http://git-wip-us.apache.org/repos/asf/hbase/blob/62061605/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityUtils.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityUtils.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityUtils.java
index 33ccab6..35843ff 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityUtils.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityUtils.java
@@ -181,7 +181,7 @@ public class VisibilityUtils {
     while (tagsIterator.hasNext()) {
       Tag tag = tagsIterator.next();
       if (tag.getType() == VisibilityUtils.VISIBILITY_EXP_SERIALIZATION_TAG_TYPE) {
-        int serializationVersion = Bytes.toShort(tag.getBuffer());
+        int serializationVersion = tag.getBuffer()[tag.getTagOffset()];
         if (serializationVersion == VisibilityConstants.VISIBILITY_SERIALIZATION_VERSION)
{
           sortedOrder = true;
           continue;


Mime
View raw message