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 Michael Stack
parent a4983d8185
commit 5ae8bc4974
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,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){