fix freespace for image GC

pull/6/head
Pingan2017 2018-02-23 17:25:54 +08:00
parent 5d144152e4
commit 9f37b5fe52
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ func (im *realImageGCManager) freeSpace(bytesToFree int64, freeTime time.Time) (
// Images that are currently in used were given a newer lastUsed.
if image.lastUsed.Equal(freeTime) || image.lastUsed.After(freeTime) {
glog.V(5).Infof("Image ID %s has lastUsed=%v which is >= freeTime=%v, not eligible for garbage collection", image.id, image.lastUsed, freeTime)
break
continue
}
// Avoid garbage collect the image if the image is not old enough.