From 48849bb96cfe9adc7811ed14f472bcfe1f210e79 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 3 Dec 2014 13:06:43 -0500 Subject: [PATCH] devmapper: Remove unnecessary call to allocateTransactionId() during device removal Remove call to allocateTransactionId() during device removal. This seems to be unnecessary and it is not clear what this call is doing. Signed-off-by: Vivek Goyal Upstream-commit: 004d8b9b337f4a6cf68c124e89e02e673c6320fc Component: engine --- components/engine/daemon/graphdriver/devmapper/deviceset.go | 1 - 1 file changed, 1 deletion(-) diff --git a/components/engine/daemon/graphdriver/devmapper/deviceset.go b/components/engine/daemon/graphdriver/devmapper/deviceset.go index bc83bb7fa4..7ffabc3e2f 100644 --- a/components/engine/daemon/graphdriver/devmapper/deviceset.go +++ b/components/engine/daemon/graphdriver/devmapper/deviceset.go @@ -793,7 +793,6 @@ func (devices *DeviceSet) deleteDevice(info *DevInfo) error { return err } - devices.allocateTransactionId() devices.devicesLock.Lock() delete(devices.Devices, info.Hash) devices.devicesLock.Unlock()