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:
parent
cf9d0c8ae2
commit
4141a00921
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue