mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
sstables_manager will soon be closed asynhronously, with a future-returning close() function. To prepare for that, make the following changes - acquire a test_env with test_env::do_with() (or the sharded variant) - change the sstable_from_existing_file function to be a functor that works with either cql_test_env or test_env (as this is what individual tests want); drop use of test_sstables_manager - change new_sstable() to accept a test_env instead of using test_sstables_manager - replace test_sstables_manager with an sstables_manager obtained from test_env These changes allow lifetime management of the sstables_manager used in the tests to be centralized in test_env.