test: perf: memory_footprint_test: don't use obsolete sstable versions

memory_footprint_test fails with:
`sstable - writing sstables with too old format`
because it attempts to write the obsolete sstables formats,
for which the writer code has been long removed.

Fix that.

Closes #14265
This commit is contained in:
Michał Chojnowski
2023-06-15 17:39:59 +02:00
committed by Botond Dénes
parent f6c24c9b70
commit 3cf15e6ad7

View File

@@ -204,7 +204,7 @@ static sizes calculate_sizes(cache_tracker& tracker, const mutation_settings& se
tmpdir sstable_dir;
sstables::test_env::do_with_async([&] (sstables::test_env& env) {
for (auto v : sstables::all_sstable_versions) {
for (auto v : sstables::writable_sstable_versions) {
auto sst = env.make_sstable(s, v);
auto mt2 = make_lw_shared<replica::memtable>(s);
mt2->apply(*mt, env.make_reader_permit()).get();