From a8a9589f805ea2b0ff7ddd2e2d52cfd2b1b49138 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 25 Dec 2022 12:11:53 -0800 Subject: [PATCH] comment out code that maybe used later --- weed/mount/page_writer/chunk_interval_list.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/weed/mount/page_writer/chunk_interval_list.go b/weed/mount/page_writer/chunk_interval_list.go index b31c013d9..ad2fc2edc 100644 --- a/weed/mount/page_writer/chunk_interval_list.go +++ b/weed/mount/page_writer/chunk_interval_list.go @@ -64,6 +64,13 @@ func (list *ChunkWrittenIntervalList) WrittenSize() (writtenByteCount int64) { func (list *ChunkWrittenIntervalList) addInterval(interval *ChunkWrittenInterval) { + //t := list.head + //for ; t.next != nil; t = t.next { + // if t.TsNs > interval.TsNs { + // println("writes is out of order", t.TsNs-interval.TsNs, "ns") + // } + //} + p := list.head for ; p.next != nil && p.next.stopOffset <= interval.StartOffset; p = p.next { }