aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-04-17 22:55:26 -0700
committerchrislu <chris.lu@gmail.com>2022-04-17 22:55:26 -0700
commit4524ceae6b36a725418599884f31510f7896503e (patch)
treed93cb541e9646eee2c048051322acf5f01a6811f
parent39b1e1b6307c23a15e5f4468f0861c952ae38da6 (diff)
downloadseaweedfs-4524ceae6b36a725418599884f31510f7896503e.tar.xz
seaweedfs-4524ceae6b36a725418599884f31510f7896503e.zip
less verbose logs
fix https://github.com/chrislusf/seaweedfs/discussions/2925#discussioncomment-2584085
-rw-r--r--weed/topology/volume_layout.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index de840f18f..167aee8ea 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -440,8 +440,11 @@ func (vl *VolumeLayout) SetVolumeCapacityFull(vid needle.VolumeId) bool {
vl.accessLock.Lock()
defer vl.accessLock.Unlock()
- glog.V(0).Infof("Volume %d reaches full capacity.", vid)
- return vl.removeFromWritable(vid)
+ wasWritable := vl.removeFromWritable(vid)
+ if wasWritable {
+ glog.V(0).Infof("Volume %d reaches full capacity.", vid)
+ }
+ return wasWritable
}
func (vl *VolumeLayout) removeFromCrowded(vid needle.VolumeId) {