From defcd4edc591c0f7f19f363714098c94f58d9e6a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 7 Jul 2018 00:48:58 -0700 Subject: [PATCH] adjust log level --- weed/storage/volume_vacuum.go | 4 ++-- weed/storage/volume_vacuum_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index c0bdcdf96..98037066f 100644 --- a/weed/storage/volume_vacuum.go +++ b/weed/storage/volume_vacuum.go @@ -133,7 +133,7 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI return fmt.Errorf("readIndexEntry %s at offset %d failed: %v", oldIdxFileName, idx_offset, err) } key, offset, size := idxFileEntry(IdxEntry) - glog.V(0).Infof("key %d offset %d size %d", key, offset, size) + glog.V(4).Infof("key %d offset %d size %d", key, offset, size) if _, found := incrementedHasUpdatedIndexEntry[key]; !found { incrementedHasUpdatedIndexEntry[key] = keyField{ offset: offset, @@ -193,7 +193,7 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI //updated needle if incre_idx_entry.offset != 0 && incre_idx_entry.size != 0 && incre_idx_entry.size != TombstoneFileSize { //even the needle cache in memory is hit, the need_bytes is correct - glog.V(0).Infof("file %d offset %d size %d", key, int64(incre_idx_entry.offset)*NeedlePaddingSize, incre_idx_entry.size) + glog.V(4).Infof("file %d offset %d size %d", key, int64(incre_idx_entry.offset)*NeedlePaddingSize, incre_idx_entry.size) var needle_bytes []byte needle_bytes, err = ReadNeedleBlob(oldDatFile, int64(incre_idx_entry.offset)*NeedlePaddingSize, incre_idx_entry.size) if err != nil { diff --git a/weed/storage/volume_vacuum_test.go b/weed/storage/volume_vacuum_test.go index 53c50b743..c74c24b16 100644 --- a/weed/storage/volume_vacuum_test.go +++ b/weed/storage/volume_vacuum_test.go @@ -129,12 +129,12 @@ func doSomeWritesDeletes(i int, v *Volume, t *testing.T, infos []*needleInfo) { size: size, crc: n.Checksum, } - println("written file", i, "checksum", n.Checksum.Value(), "size", size) + // println("written file", i, "checksum", n.Checksum.Value(), "size", size) if rand.Float64() < 0.5 { toBeDeleted := rand.Intn(i) + 1 oldNeedle := newEmptyNeedle(uint64(toBeDeleted)) v.deleteNeedle(oldNeedle) - println("deleted file", toBeDeleted) + // println("deleted file", toBeDeleted) infos[toBeDeleted-1] = &needleInfo{ size: 0, crc: n.Checksum,