From 834bec5cc9e79eca487928e7b9bd77d751e0370a Mon Sep 17 00:00:00 2001 From: Piotr Jastrzebski Date: Mon, 4 Feb 2019 15:04:23 +0100 Subject: [PATCH] Read shard awareness columns as dropped Without this new version of Scylla won't be able to start with system tables inherited after older version that had shard awareness columns. Signed-off-by: Piotr Jastrzebski Message-Id: --- db/system_keyspace.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/system_keyspace.cc b/db/system_keyspace.cc index 1dcf504b03..8357c00414 100644 --- a/db/system_keyspace.cc +++ b/db/system_keyspace.cc @@ -243,6 +243,9 @@ schema_ptr built_indexes() { {"broadcast_address", inet_addr_type}, {"listen_address", inet_addr_type}, {"supported_features", utf8_type}, + {"scylla_cpu_sharding_algorithm", utf8_type}, + {"scylla_nr_shards", int32_type}, + {"scylla_msb_ignore", int32_type}, }, // static columns @@ -253,6 +256,9 @@ schema_ptr built_indexes() { "information about the local node" ))); builder.with_version(generate_schema_version(builder.uuid())); + builder.remove_column("scylla_cpu_sharding_algorithm"); + builder.remove_column("scylla_nr_shards"); + builder.remove_column("scylla_msb_ignore"); return builder.build(schema_builder::compact_storage::no); }(); return local;