mirror of https://github.com/apache/cassandra
fixes small bug introduced by CASSANDRA-4439
This commit is contained in:
parent
202f3940dc
commit
e220efa2a8
|
|
@ -877,6 +877,9 @@ public final class CFMetaData
|
|||
|
||||
String oldIndexName = cfm.column_metadata.get(entry.getKey()).getIndexName();
|
||||
|
||||
if (oldIndexName == null)
|
||||
continue;
|
||||
|
||||
if (newDef.getIndexName() != null && !oldIndexName.equals(newDef.getIndexName()))
|
||||
throw new ConfigurationException("Can't modify index name: was '" + oldIndexName + "' changed to '" + newDef.getIndexName() + "'.");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue