Skip to content

Commit 876d2ac

Browse files
WenFeiYisaintstack
authored andcommitted
HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182
1 parent 454eddd commit 876d2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/AbstractMemStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public String toString() {
259259
int i = 1;
260260
try {
261261
for (Segment segment : getSegments()) {
262-
buf.append("Segment (" + i + ") " + segment.toString() + "; ");
262+
buf.append("Segment (").append(i).append(") ").append(segment.toString()).append("; ");
263263
i++;
264264
}
265265
} catch (IOException e){

0 commit comments

Comments
 (0)