diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-12-31 00:06:52 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-12-31 00:06:52 -0800 |
| commit | 03cfb4267f3ee19a0c8132447804e8f260148277 (patch) | |
| tree | 03053a2b6195eeb1f6f89d37b5f1a8a74172ca6c | |
| parent | d6181076bb30f96588005c0785d7406981dc3b43 (diff) | |
| download | seaweedfs-03cfb4267f3ee19a0c8132447804e8f260148277.tar.xz seaweedfs-03cfb4267f3ee19a0c8132447804e8f260148277.zip | |
adjust vaccum logging
| -rw-r--r-- | weed/topology/topology_vacuum.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index c6ec4375a..e386dabdb 100644 --- a/weed/topology/topology_vacuum.go +++ b/weed/topology/topology_vacuum.go @@ -116,7 +116,7 @@ func batchVacuumVolumeCleanup(vl *VolumeLayout, vid storage.VolumeId, locationli } func (t *Topology) Vacuum(garbageThreshold float64, preallocate int64) int { - glog.V(0).Infof("Start vacuum on demand with threshold: %f", garbageThreshold) + glog.V(1).Infof("Start vacuum on demand with threshold: %f", garbageThreshold) for _, col := range t.collectionMap.Items() { c := col.(*Collection) for _, vl := range c.storageType2VolumeLayout.Items() { @@ -148,7 +148,7 @@ func vacuumOneVolumeLayout(volumeLayout *VolumeLayout, c *Collection, garbageThr continue } - glog.V(0).Infof("check vacuum on collection:%s volume:%d", c.Name, vid) + glog.V(2).Infof("check vacuum on collection:%s volume:%d", c.Name, vid) if batchVacuumVolumeCheck(volumeLayout, vid, locationlist, garbageThreshold) { if batchVacuumVolumeCompact(volumeLayout, vid, locationlist, preallocate) { batchVacuumVolumeCommit(volumeLayout, vid, locationlist) |
