Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public void truncateTo(long targetLogSequenceNumber, TruncateReason truncateReas
* be flushed
*/
public void flush(long exclusiveUpToLogSequenceNumber) throws IOException {
long start = System.nanoTime();
int flushedCount = 0;
for (Iterator<KvEntry> it = allKvEntries.iterator(); it.hasNext(); ) {
KvEntry entry = it.next();
Expand Down Expand Up @@ -236,7 +237,6 @@ public void flush(long exclusiveUpToLogSequenceNumber) throws IOException {
}
// flush to underlying kv tablet
if (flushedCount > 0) {
long start = System.nanoTime();
kvBatchWriter.flush();
flushCount.inc();
flushLatencyHistogram.update((System.nanoTime() - start) / 1_000_000);
Expand Down