maedhroz commented on a change in pull request #1221:
URL: https://github.com/apache/cassandra/pull/1221#discussion_r720570790
##########
File path: src/java/org/apache/cassandra/schema/Schema.java
##########
@@ -81,6 +115,37 @@ private Schema()
}
}
+ /**
+ * Add entries to system_schema.* for the hardcoded system keyspaces
+ *
+ * See CASSANDRA-16856/16996. Make sure schema pulls are synchronized to
prevent concurrent schema pull/writes
+ */
+ public static synchronized void saveSystemKeyspacesSchema()
+ {
+ SchemaKeyspace.saveSystemKeyspacesSchema();
+ }
+
+ /**
+ * See CASSANDRA-16856/16996. Make sure schema pulls are synchronized to
prevent concurrent schema pull/writes
+ */
+ public static synchronized void truncateSystemKeyspacesSchema()
+ {
+ SchemaKeyspace.truncate();
+ }
+
+ /**
+ * See CASSANDRA-16856/16996. Make sure schema pulls are synchronized to
prevent concurrent schema pull/writes
+ */
+ public static synchronized void convertSystemKeyspacesSchemaToMutations()
Review comment:
nit: `convertSystemKeyspacesSchemaToMutations()` ->
`systemKeyspaceAsMutations()`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]