pool: Fix failure to destroy pool
The code that determines the base bdev type inadvertently used
lvs_bdev_ptr after it had already been destroyed. Switch to base_bdev
instead so that that the base bdev type can be determined.
Fixes: ("pool: Return base bdev type in list pools")
@@ -498,7 +498,7 @@ impl Pool {
return Ok(());
}
};
- let base_bdev_type = self.get_base_bdev().driver();
+ let base_bdev_type = base_bdev.driver();
debug!("Destroying bdev type {}", base_bdev_type);
let (sender, receiver) = oneshot::channel::<i32>();
