mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
sstable_test: fix check_toc_func
We are currently failing the sstable test. The reason is that we use the store()
function for test purposes, and that function does not store the TOC component.
It was removed by Aviccident in 3a5e3c88.
Because that function is only used for testing purposes, it doesn't need to write
the Index and Data components: we can then remove them from the list.
Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
This commit is contained in:
committed by
Avi Kivity
parent
fb34ac7f65
commit
c2eca19737
@@ -878,12 +878,14 @@ future<> sstable::load() {
|
||||
}
|
||||
|
||||
future<> sstable::store() {
|
||||
// TODO: write other components as well.
|
||||
_components.erase(component_type::Index);
|
||||
_components.erase(component_type::Data);
|
||||
return seastar::async([this] {
|
||||
write_statistics();
|
||||
write_compression();
|
||||
write_filter();
|
||||
write_summary();
|
||||
write_toc();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user