From 3faea72b70977f8f74e4e8aa287cea1cc1aae523 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Wed, 16 Jun 2021 16:00:44 +0800 Subject: [PATCH] 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 --- src/crimson/tools/store_nbd/fs_driver.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/tools/store_nbd/fs_driver.cc b/src/crimson/tools/store_nbd/fs_driver.cc index 76db2c27082..8de6d86a3a6 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, -- 2.39.5