From 468514f5256671bc7649c516f67c9996ae9a273a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 23 May 2018 02:36:06 -0700 Subject: [PATCH] reduce logs --- weed/filer2/filechunks.go | 4 ++-- 1 file 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)