mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-08 16:03:20 +00:00
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:
committed by
Avi Kivity
parent
bbd9dfcba7
commit
834bec5cc9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user