]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/crimson/seastore/test_transaction_manager: close and reopen tm after mkfs
authorSamuel Just <sjust@redhat.com>
Thu, 17 Sep 2020 23:11:26 +0000 (16:11 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 20 Oct 2020 19:27:08 +0000 (12:27 -0700)
We'll just require this generally.  Most of the time, mkfs will be a
standalone operation anyway.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/crimson/seastore/test_transaction_manager.cc

index 0c6067ca8012c6242f4b11d28c522d5af97d8499..ff56aa82177567e1fa7ecba7fd9e380e0bb8a2d5 100644 (file)
@@ -101,6 +101,12 @@ struct transaction_manager_test_t : public seastar_test_suite_t {
     return segment_manager->init().safe_then([this] {
       return tm->mkfs();
     }).safe_then([this] {
+      return tm->close();
+    }).safe_then([this] {
+      destroy();
+      static_cast<segment_manager::EphemeralSegmentManager*>(
+       &*segment_manager)->remount();
+      init();
       return tm->mount();
     }).handle_error(
       crimson::ct_error::all_same_way([] {