Merge pull request #36774 from dillaman/wip-46669-2

librbd: drop deferred AsioEngine destruction

Reviewed-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
Mykola Golub 2020-08-26 18:22:34 +03:00 committed by GitHub
commit f34d1d3ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,11 +173,6 @@ librados::IoCtx duplicate_io_ctx(librados::IoCtx& io_ctx) {
delete state;
delete plugin_registry;
// destroy our AsioEngine via its shared io_context to ensure that we
// aren't executing within an AsioEngine-owned strand
auto& io_context = asio_engine->get_io_context();
boost::asio::post(io_context, [asio_engine=std::move(asio_engine)]() {});
}
void ImageCtx::init() {