mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 04:06:59 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user