|
|
@ -127,19 +127,6 @@ func (pages *ContinuousDirtyPages) saveToStorage(reader io.Reader, offset int64, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func max(x, y int64) int64 { |
|
|
|
if x > y { |
|
|
|
return x |
|
|
|
} |
|
|
|
return y |
|
|
|
} |
|
|
|
func min(x, y int64) int64 { |
|
|
|
if x < y { |
|
|
|
return x |
|
|
|
} |
|
|
|
return y |
|
|
|
} |
|
|
|
|
|
|
|
func (pages *ContinuousDirtyPages) ReadDirtyDataAt(data []byte, startOffset int64) (maxStop int64) { |
|
|
|
return pages.intervals.ReadDataAt(data, startOffset) |
|
|
|
} |
|
|
|