Skip to content

Commit 0be9bc8

Browse files
WenFeiYiApache9
authored andcommitted
HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString apache#182
1 parent e92be2f commit 0be9bc8

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
@@ -260,7 +260,7 @@ public String toString() {
260260
int i = 1;
261261
try {
262262
for (Segment segment : getSegments()) {
263-
buf.append("Segment (" + i + ") " + segment.toString() + "; ");
263+
buf.append("Segment (").append(i).append(") ").append(segment.toString()).append("; ");
264264
i++;
265265
}
266266
} catch (IOException e){

0 commit comments

Comments
 (0)