Skip to content

Commit 54141af

Browse files
minor fix
1 parent ee738c0 commit 54141af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index/scorch/merge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ func (s *Scorch) planMergeAtSnapshot(ctrlMsg *mergerCtrl, ourSnapshot *IndexSnap
430430
s.markIneligibleForRemoval(batch.newFilename)
431431
path := s.path + string(os.PathSeparator) + batch.newFilename
432432

433+
prevBytesReadTotal := cumulateBytesRead(batch.segments)
433434
fileMergeZapStartTime := time.Now()
434435
atomic.AddUint64(&s.stats.TotFileMergeZapBeg, 1)
435-
prevBytesReadTotal := cumulateBytesRead(batch.segments)
436436
batch.newDocNums, _, err = s.segPlugin.MergeUsing(batch.segments, batch.drops, path,
437437
cw.cancelCh, s, s.segmentConfig)
438438
atomic.AddUint64(&s.stats.TotFileMergeZapEnd, 1)

0 commit comments

Comments
 (0)