diff --git a/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go b/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go index 1b87b3c5d15..d3fc8e5bc8a 100644 --- a/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go +++ b/cloud/disk_manager/internal/pkg/services/pools/storage/consistency_check.go @@ -226,6 +226,9 @@ func (s *storageYDB) checkBaseDiskSlotReleased( defer tx.Rollback(ctx) slot, err := s.getAcquiredSlot(ctx, tx, overlayDiskID) + if err != nil { + return err + } if slot == nil { return tx.Commit(ctx) }