1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-03 07:36:45 +02:00
This commit is contained in:
Chris Lu 2020-10-21 19:31:26 -07:00
parent 9884dfc369
commit b5917bf846

View file

@ -190,7 +190,6 @@ func (c *ContinuousIntervals) AddInterval(data []byte, offset int64) {
func (c *ContinuousIntervals) RemoveLargestIntervalLinkedList() *IntervalLinkedList {
var maxSize int64
maxIndex, maxOffset := -1, int64(-1)
println("in memory list:", len(c.lists))
for k, list := range c.lists {
listSize := list.Size()
if maxSize < listSize || (maxSize == listSize && list.Offset() < maxOffset ) {