mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Right now if somebody has enabled deferred device deletion, then deleteTransaction() returns success even if device could not be deleted. It has been marked for deferred deletion. Right now we will mark device ID free and potentially use it again when somebody tries to create new container. And that's wrong. Device ID is not free yet. It will become free once devices has actually been deleted by the goroutine later. So move the location of call to markDeviceIDFree() to a place where we know device actually got deleted and was not marked for deferred deletion. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Upstream-commit: 2dccb562dff79fef0f7a1d3b5f0e760e9d799d44 Component: engine