From b721d6d8d0313fbb4b80e12318c96fc4004ee96b Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 3 Dec 2014 13:06:43 -0500 Subject: [PATCH] devmapper: Do not check for transaction id during device metadata loading Again, just because device transaction id is greater than pool transaction id, it does not guarantee that device is in the pool. So do not check of this during loading of device metadata. Docker needs to deal with it. And device activation will fail when we try to activate a device for whom metafile is present but there is no device in the pool. Signed-off-by: Vivek Goyal --- daemon/graphdriver/devmapper/deviceset.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go index 9731d633c..bc83bb7fa 100644 --- a/daemon/graphdriver/devmapper/deviceset.go +++ b/daemon/graphdriver/devmapper/deviceset.go @@ -390,11 +390,6 @@ func (devices *DeviceSet) loadMetadata(hash string) *DevInfo { return nil } - // If the transaction id is larger than the actual one we lost the device due to some crash - if info.TransactionId > devices.TransactionId { - return nil - } - return info }