aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-09 01:02:01 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-09 01:02:01 -0700
commit89eb05b50f10b6ca74a374e5435df2f72019f635 (patch)
tree9544704b3dd90da8a9cb4ecc3647ad7398e97d3e /weed/storage/volume.go
parent8a899992f2d3f1b248f91065f3d5c8db3e10f325 (diff)
downloadseaweedfs-89eb05b50f10b6ca74a374e5435df2f72019f635.tar.xz
seaweedfs-89eb05b50f10b6ca74a374e5435df2f72019f635.zip
filer: support TTL for all filer stores
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 88a5db4c5..7da83de7a 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -180,9 +180,9 @@ func (v *Volume) expired(volumeSizeLimit uint64) bool {
if v.Ttl == nil || v.Ttl.Minutes() == 0 {
return false
}
- glog.V(1).Infof("now:%v lastModified:%v", time.Now().Unix(), v.lastModifiedTsSeconds)
+ glog.V(2).Infof("now:%v lastModified:%v", time.Now().Unix(), v.lastModifiedTsSeconds)
livedMinutes := (time.Now().Unix() - int64(v.lastModifiedTsSeconds)) / 60
- glog.V(1).Infof("ttl:%v lived:%v", v.Ttl, livedMinutes)
+ glog.V(2).Infof("ttl:%v lived:%v", v.Ttl, livedMinutes)
if int64(v.Ttl.Minutes()) < livedMinutes {
return true
}