chore: mute some reclaim check log (#3469)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
parent
58b612fb3a
commit
b23b18d113
|
|
@ -516,7 +516,8 @@ func (t *localTaskStore) CanReclaim() bool {
|
||||||
// task soft cache time reached
|
// task soft cache time reached
|
||||||
access := time.Unix(0, t.lastAccess.Load())
|
access := time.Unix(0, t.lastAccess.Load())
|
||||||
reclaim := access.Add(t.expireTime).Before(now)
|
reclaim := access.Add(t.expireTime).Before(now)
|
||||||
t.Debugf("reclaim check, last access: %v, reclaim: %v", access, reclaim)
|
// TODO add a option to avoid print log too frequently
|
||||||
|
// t.Debugf("reclaim check, last access: %v, reclaim: %v", access, reclaim)
|
||||||
if reclaim || t.Header == nil {
|
if reclaim || t.Header == nil {
|
||||||
return reclaim
|
return reclaim
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -881,8 +881,9 @@ func (s *storageManager) TryGC() (bool, error) {
|
||||||
if ok {
|
if ok {
|
||||||
// just calculate not reclaimed task
|
// just calculate not reclaimed task
|
||||||
totalNotMarkedSize += lts.ContentLength
|
totalNotMarkedSize += lts.ContentLength
|
||||||
logger.Debugf("task %s/%s not reach gc time",
|
// TODO add a option to avoid print log too frequently
|
||||||
key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
|
// logger.Debugf("task %s/%s not reach gc time",
|
||||||
|
// key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue