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 <piotr@scylladb.com>
Message-Id: <cb62f20fc0c98f532c6f4ad5e08b3794951e85bd.1549289050.git.piotr@scylladb.com>
This commit is contained in:
Piotr Jastrzebski
2019-02-04 15:04:23 +01:00
committed by Avi Kivity
parent bbd9dfcba7
commit 834bec5cc9

View File

@@ -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;