Skip to content

Commit cb771b1

Browse files
committed
Introduced a flag, which allows IO stats computation when set true
1 parent 28aea4f commit cb771b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

segment.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ type PostingsIterator interface {
101101
Size() int
102102
}
103103

104+
// This flag controls the IO stats collection from the segment files
105+
// during indexing and querying
106+
var CollectIOStats bool
107+
104108
type DiskStatsReporter interface {
105109
BytesRead() uint64
106110
SetBytesRead(uint64)

0 commit comments

Comments
 (0)