schema: remove set_compressor_params

use the builder instead. Sole current user is patched

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
This commit is contained in:
Glauber Costa
2015-07-17 19:46:38 -04:00
parent d3e539e868
commit 75ffcefd90
2 changed files with 4 additions and 6 deletions

View File

@@ -231,9 +231,6 @@ public:
return _raw._bloom_filter_fp_chance;
}
sstring thrift_key_validator() const;
void set_compressor_params(compression_parameters c) {
_raw._compressor_params = c;
}
const compression_parameters& get_compressor_params() const {
return _raw._compressor_params;
}

View File

@@ -11,6 +11,7 @@
#include "sstables/compaction.hh"
#include "tests/test-utils.hh"
#include "schema.hh"
#include "schema_builder.hh"
#include "database.hh"
#include <memory>
#include "sstable_test.hh"
@@ -883,10 +884,10 @@ SEASTAR_TEST_CASE(datafile_generation_12) {
static future<> sstable_compression_test(compressor c, unsigned generation) {
return test_setup::do_with_test_directory([c, generation] {
auto& cs = *complex_schema();
auto s = make_lw_shared(schema(cs));
// NOTE: set a given compressor algorithm to schema.
s->set_compressor_params(c);
schema_builder builder(complex_schema());
builder.set_compressor_params(c);
auto s = builder.build();
auto mtp = make_lw_shared<memtable>(s);