You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/06/09 21:32:26 UTC

[hbase] branch branch-2.2 updated: HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182

This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new b086c5d  HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182
b086c5d is described below

commit b086c5d607606db01aeae1dbc396c2bbf56a5f80
Author: WenFeiYi <we...@gmail.com>
AuthorDate: Mon Jun 10 05:28:27 2019 +0800

    HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182
---
 .../java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java
index cbd3b16..3c3834a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java
@@ -259,7 +259,7 @@ public abstract class AbstractMemStore implements MemStore {
     int i = 1;
     try {
       for (Segment segment : getSegments()) {
-        buf.append("Segment (" + i + ") " + segment.toString() + "; ");
+        buf.append("Segment (").append(i).append(") ").append(segment.toString()).append("; ");
         i++;
       }
     } catch (IOException e){