зеркало из https://github.com/microsoft/docker.git
Fix the assignment to wrong variable
We should be assigning value to minFreeMetadata instead of minFreeData. This is copy/paste error. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Родитель
cf9d0c8ae2
Коммит
4141a00921
|
@ -776,7 +776,7 @@ func (devices *DeviceSet) poolHasFreeSpace() error {
|
|||
|
||||
minFreeMetadata := (metadataTotal * uint64(devices.minFreeSpacePercent)) / 100
|
||||
if minFreeMetadata < 1 {
|
||||
minFreeData = 1
|
||||
minFreeMetadata = 1
|
||||
}
|
||||
|
||||
metadataFree := metadataTotal - metadataUsed
|
||||
|
|
Загрузка…
Ссылка в новой задаче