mirror of https://github.com/apache/cassandra
In this commit the `org.apache.cassandra.io.sstable.CQLSSTableWriter#build` method synchronizes on the `Schema.instance` object (instead of the `CQLSSTableWriter.class`) to prevent concurrent schema operations to fail when the offline tools also updates the schema. For example, a table creation operation, which modifies the keyspace tables metadata, might end up missing the update when a concurrent call to the `CQLSSTableWriter#build` method is accessing the singleton Schema instance. Patch by Francisco Guerrero, reviewed by Yifan Cai, Maxwell Guo, Alex Petrov for CASSANDRA-18317. |
||
|---|---|---|
| .. | ||
| antlr | ||
| java | ||
| resources/org/apache/cassandra | ||