Browse code

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 authored on 2014/12/04 03:06:43
Showing 1 changed files
... ...
@@ -793,7 +793,6 @@ func (devices *DeviceSet) deleteDevice(info *DevInfo) error {
793 793
 		return err
794 794
 	}
795 795
 
796
-	devices.allocateTransactionId()
797 796
 	devices.devicesLock.Lock()
798 797
 	delete(devices.Devices, info.Hash)
799 798
 	devices.devicesLock.Unlock()