mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove println
This commit is contained in:
parent
9a73319b45
commit
3981d65b68
|
@ -1,7 +1,5 @@
|
||||||
package filesys
|
package filesys
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
type WriterPattern struct {
|
type WriterPattern struct {
|
||||||
isStreaming bool
|
isStreaming bool
|
||||||
lastWriteOffset int64
|
lastWriteOffset int64
|
||||||
|
@ -26,10 +24,6 @@ func (rp *WriterPattern) MonitorWriteAt(offset int64, size int) {
|
||||||
if rp.lastWriteOffset == 0 {
|
if rp.lastWriteOffset == 0 {
|
||||||
}
|
}
|
||||||
if rp.lastWriteOffset > offset {
|
if rp.lastWriteOffset > offset {
|
||||||
if rp.isStreaming {
|
|
||||||
fmt.Printf("file %s ==> non streaming at [%d,%d)\n", rp.fileName, offset, offset+int64(size))
|
|
||||||
}
|
|
||||||
fmt.Printf("write %s [%d,%d)\n", rp.fileName, offset, offset+int64(size))
|
|
||||||
rp.isStreaming = false
|
rp.isStreaming = false
|
||||||
}
|
}
|
||||||
rp.lastWriteOffset = offset
|
rp.lastWriteOffset = offset
|
||||||
|
|
Loading…
Reference in a new issue