aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filechunks.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-23 02:36:06 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-23 02:36:06 -0700
commit468514f5256671bc7649c516f67c9996ae9a273a (patch)
tree2b67851043322ec49538ea8310b3feb150f174ce /weed/filer2/filechunks.go
parent69b9d8c3c25f7ab3b8c7ad54aeeddcea50548852 (diff)
downloadseaweedfs-468514f5256671bc7649c516f67c9996ae9a273a.tar.xz
seaweedfs-468514f5256671bc7649c516f67c9996ae9a273a.zip
reduce logs
Diffstat (limited to 'weed/filer2/filechunks.go')
-rw-r--r--weed/filer2/filechunks.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go
index 834e014d9..65197d471 100644
--- a/weed/filer2/filechunks.go
+++ b/weed/filer2/filechunks.go
@@ -54,7 +54,7 @@ func FindUnusedFileChunks(oldChunks, newChunks []*filer_pb.FileChunk) (unused []
func logPrintf(name string, visibles []*visibleInterval) {
- // return
+ return
log.Printf("%s len %d", name, len(visibles))
for _, v := range visibles {
@@ -82,7 +82,7 @@ func nonOverlappingVisibleIntervals(chunks []*filer_pb.FileChunk) (visibles []*v
var minStopInterval, upToDateInterval *visibleInterval
watermarkStart := chunks[0].Offset
for _, chunk := range chunks {
- log.Printf("checking chunk: [%d,%d)", chunk.Offset, chunk.Offset+int64(chunk.Size))
+ // log.Printf("checking chunk: [%d,%d)", chunk.Offset, chunk.Offset+int64(chunk.Size))
logPrintf("parallelIntervals", parallelIntervals)
for len(parallelIntervals) > 0 && watermarkStart < chunk.Offset {
logPrintf("parallelIntervals loop 1", parallelIntervals)