From b086c5d607606db01aeae1dbc396c2bbf56a5f80 Mon Sep 17 00:00:00 2001 From: WenFeiYi Date: Mon, 10 Jun 2019 05:28:27 +0800 Subject: [PATCH] HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182 --- .../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 cbd3b1632d8c..3c3834a4df8a 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 String toString() { 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){