mirror of
https://github.com/minio/minio.git
synced 2025-01-13 16:03:21 -05:00
Adding debug statements for testing
This commit is contained in:
parent
82a16b8848
commit
aff2b3b06a
@ -309,6 +309,7 @@ func (memory *memoryDriver) CreateObject(bucket, key, contentType, expectedMD5Su
|
|||||||
if memory.totalSize > memory.maxSize {
|
if memory.totalSize > memory.maxSize {
|
||||||
memory.objects.RemoveOldest()
|
memory.objects.RemoveOldest()
|
||||||
}
|
}
|
||||||
|
log.Println("Size:", memory.totalSize)
|
||||||
memory.lock.Unlock()
|
memory.lock.Unlock()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@ -492,7 +493,8 @@ func (memory *memoryDriver) GetObjectMetadata(bucket, key, prefix string) (drive
|
|||||||
func (memory *memoryDriver) evictObject(key lru.Key, value interface{}) {
|
func (memory *memoryDriver) evictObject(key lru.Key, value interface{}) {
|
||||||
k := key.(string)
|
k := key.(string)
|
||||||
memory.totalSize = memory.totalSize - uint64(memory.objectMetadata[k].metadata.Size)
|
memory.totalSize = memory.totalSize - uint64(memory.objectMetadata[k].metadata.Size)
|
||||||
log.Println("evicting:", k)
|
log.Println("evicting:", k, memory.objectMetadata[k].metadata.Size)
|
||||||
|
log.Println("Size:", memory.totalSize)
|
||||||
delete(memory.objectMetadata, k)
|
delete(memory.objectMetadata, k)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user