HBASE-22284 optimization StringBuilder.append of AbstractMemStore.toString #182

This commit is contained in:
WenFeiYi 2019-06-10 05:28:27 +08:00 committed by stack
parent 9a5de434e1
commit a316f0b25b
1 changed files with 1 additions and 1 deletions

View File

@ -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){