database: Honour enable_sstables_mc_format configuration option.

Only enable SSTables 'mc' format if the entire cluster supports it and
it is enabled in the configuration file.

Signed-off-by: Vladimir Krivopalov <vladimir@scylladb.com>
This commit is contained in:
Vladimir Krivopalov
2018-09-10 15:38:38 -07:00
parent c98937e04c
commit cd80d6ff65

View File

@@ -88,7 +88,9 @@ logging::logger dblog("database");
namespace {
sstables::sstable::version_types get_highest_supported_format() {
if (service::get_local_storage_service().cluster_supports_la_sstable()) {
if (service::get_local_storage_service().cluster_supports_mc_sstable()) {
return sstables::sstable::version_types::mc;
} else if (service::get_local_storage_service().cluster_supports_la_sstable()) {
return sstables::sstable::version_types::la;
} else {
return sstables::sstable::version_types::ka;