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
|
||||
access := time.Unix(0, t.lastAccess.Load())
|
||||
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 {
|
||||
return reclaim
|
||||
}
|
||||
|
|
|
|||
|
|
@ -881,8 +881,9 @@ func (s *storageManager) TryGC() (bool, error) {
|
|||
if ok {
|
||||
// just calculate not reclaimed task
|
||||
totalNotMarkedSize += lts.ContentLength
|
||||
logger.Debugf("task %s/%s not reach gc time",
|
||||
key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
|
||||
// TODO add a option to avoid print log too frequently
|
||||
// logger.Debugf("task %s/%s not reach gc time",
|
||||
// key.(PeerTaskMetadata).TaskID, key.(PeerTaskMetadata).PeerID)
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
|
|
|||
Loading…
Reference in New Issue