瀏覽代碼

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 <vgoyal@redhat.com>
Vivek Goyal 10 年之前
父節點
當前提交
004d8b9b33
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      daemon/graphdriver/devmapper/deviceset.go

+ 0 - 1
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()