Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit c281165

Browse files
committed
Cache should hold objects the same size as MaxSize
Signed-off-by: Javi Fontan <[email protected]>
1 parent 5b1cde5 commit c281165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plumbing/cache/object_lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (c *ObjectLRU) Put(obj plumbing.EncodedObject) {
5151

5252
objSize := FileSize(obj.Size())
5353

54-
if objSize >= c.MaxSize {
54+
if objSize > c.MaxSize {
5555
return
5656
}
5757

0 commit comments

Comments
 (0)