From: Yingxin Cheng Date: Wed, 16 Jun 2021 08:00:44 +0000 (+0800) Subject: crimson/seastore/nbd: destruct the store before create X-Git-Tag: v17.1.0~1627^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3faea72b70977f8f74e4e8aa287cea1cc1aae523;p=ceph.git crimson/seastore/nbd: destruct the store before create Otherwise the store will register the conflicting metrics and result in double_registration. Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/tools/store_nbd/fs_driver.cc b/src/crimson/tools/store_nbd/fs_driver.cc index 76db2c270826..8de6d86a3a6f 100644 --- a/src/crimson/tools/store_nbd/fs_driver.cc +++ b/src/crimson/tools/store_nbd/fs_driver.cc @@ -159,6 +159,7 @@ seastar::future<> FSDriver::close() void FSDriver::init() { + fs.reset(); fs = FuturizedStore::create( config.get_fs_type(), *config.path,