mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-24 00:32:15 +00:00
cql3: always return created event in create ks/table/type/view statement In case multiple clients issue concurrently CREATE KEYSPACE IF NOT EXISTS and later USE KEYSPACE it can happen that schema in driver's session is out of sync because it synces when it receives special message from CREATE KEYSPACE response. Similar situation occurs with other schema change statements. In this patch we fix only create keyspace/table/type/view statements by always sending created event. Behavior of any other schema altering statements remains unchanged. Fixes https://github.com/scylladb/scylladb/issues/16909 **backport: no, it's not a regression** Closes scylladb/scylladb#18819 * github.com:scylladb/scylladb: cql3: always return created event in create ks/table/type/view statement cql3: auth: move auto-grant closer to resource creation code cql3: extract create ks/table/type/view event code