Repository: hbase Updated Branches: refs/heads/branch-2 eacbdb061 -> 84a5d2939
Revert "HBASE-18266 Create static empty byte array to save memory (Ben Epstein)" Wrong JIRA number This reverts commit 549fb1677b6403ae9d5fda6f0cf33662d5333b4d. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3a0db474 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3a0db474 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3a0db474 Branch: refs/heads/branch-2 Commit: 3a0db474a20fc6ee212db6d99d9503b6397c2fa8 Parents: eacbdb0 Author: Michael Stack <[email protected]> Authored: Mon Jul 3 19:50:55 2017 -0700 Committer: Michael Stack <[email protected]> Committed: Mon Jul 3 19:50:55 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/client/Put.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/3a0db474/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java index 5c1528f..5c3ac4b 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Put.java @@ -345,7 +345,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row> { * existing KeyValue object in the family map. */ public boolean has(byte [] family, byte [] qualifier) { - return has(family, qualifier, this.ts, HConstants.EMPTY_BYTE_ARRAY, true, true); + return has(family, qualifier, this.ts, new byte[0], true, true); } /** @@ -360,7 +360,7 @@ public class Put extends Mutation implements HeapSize, Comparable<Row> { * existing KeyValue object in the family map. */ public boolean has(byte [] family, byte [] qualifier, long ts) { - return has(family, qualifier, ts, HConstants.EMPTY_BYTE_ARRAY, false, true); + return has(family, qualifier, ts, new byte[0], false, true); } /**
