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:
Glauber Costa
2015-08-05 20:38:10 -05:00
committed by Avi Kivity
parent fb34ac7f65
commit c2eca19737

View File

@@ -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();
});
}