1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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:
Vivek Goyal 2016-03-17 15:19:08 +00:00
parent cf9d0c8ae2
commit 4141a00921

View file

@ -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