Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA986200B8B for ; Tue, 4 Oct 2016 20:43:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E94EA160ADC; Tue, 4 Oct 2016 18:43:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 39EAC160AC7 for ; Tue, 4 Oct 2016 20:43:05 +0200 (CEST) Received: (qmail 6194 invoked by uid 500); 4 Oct 2016 18:43:04 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 6185 invoked by uid 99); 4 Oct 2016 18:43:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 18:43:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 125A1E02E4; Tue, 4 Oct 2016 18:43:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dlmarion@apache.org To: commits@accumulo.apache.org Date: Tue, 04 Oct 2016 18:43:04 -0000 Message-Id: <1a5dcbcd16664fd8b3e4e572dab6abf9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] accumulo git commit: ACCUMULO-4483: Don't modify the source Value in MemValue.decode. archived-at: Tue, 04 Oct 2016 18:43:06 -0000 Repository: accumulo Updated Branches: refs/heads/master eac5f8927 -> 1c218de97 ACCUMULO-4483: Don't modify the source Value in MemValue.decode. Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/f7989c67 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/f7989c67 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/f7989c67 Branch: refs/heads/master Commit: f7989c67847d623951d657783cea263f6041987b Parents: 272ac28 Author: Dave Marion Authored: Tue Oct 4 14:41:57 2016 -0400 Committer: Dave Marion Committed: Tue Oct 4 14:41:57 2016 -0400 ---------------------------------------------------------------------- .../tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java | 1 - 1 file changed, 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/f7989c67/server/tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java ---------------------------------------------------------------------- diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java index af6f2f1..d2ba005 100644 --- a/server/tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java +++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/MemValue.java @@ -45,7 +45,6 @@ public class MemValue { byte[] originalBytes = new byte[v.getSize() - 4]; byte[] combined = v.get(); System.arraycopy(combined, 4, originalBytes, 0, originalBytes.length); - v.set(originalBytes); int kv = (combined[0] << 24) + ((combined[1] & 0xFF) << 16) + ((combined[2] & 0xFF) << 8) + (combined[3] & 0xFF); return new MemValue(new Value(originalBytes), kv);