mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.0' into cassandra-3.11
This commit is contained in:
commit
1a37992e9b
|
|
@ -74,6 +74,7 @@ Merged from 3.0:
|
|||
* Provide user workaround when system_schema.columns does not contain entries
|
||||
for a table that's in system_schema.tables (CASSANDRA-13180)
|
||||
* Nodetool upgradesstables/scrub/compact ignores system tables (CASSANDRA-13410)
|
||||
* Fix schema version calculation for rolling upgrades (CASSANDRA-13441)
|
||||
Merged from 2.2:
|
||||
* Avoid starting gossiper in RemoveTest (CASSANDRA-13407)
|
||||
* Fix weightedSize() for row-cache reported by JMX and NodeTool (CASSANDRA-13393)
|
||||
|
|
|
|||
|
|
@ -326,10 +326,15 @@ public class MigrationManager
|
|||
*/
|
||||
public static void forceAnnounceNewColumnFamily(CFMetaData cfm) throws ConfigurationException
|
||||
{
|
||||
announceNewColumnFamily(cfm, false, false);
|
||||
announceNewColumnFamily(cfm, false, false, 0);
|
||||
}
|
||||
|
||||
private static void announceNewColumnFamily(CFMetaData cfm, boolean announceLocally, boolean throwOnDuplicate) throws ConfigurationException
|
||||
{
|
||||
announceNewColumnFamily(cfm, announceLocally, throwOnDuplicate, FBUtilities.timestampMicros());
|
||||
}
|
||||
|
||||
private static void announceNewColumnFamily(CFMetaData cfm, boolean announceLocally, boolean throwOnDuplicate, long timestamp) throws ConfigurationException
|
||||
{
|
||||
cfm.validate();
|
||||
|
||||
|
|
@ -341,7 +346,7 @@ public class MigrationManager
|
|||
throw new AlreadyExistsException(cfm.ksName, cfm.cfName);
|
||||
|
||||
logger.info("Create new table: {}", cfm);
|
||||
announce(SchemaKeyspace.makeCreateTableMutation(ksm, cfm, FBUtilities.timestampMicros()), announceLocally);
|
||||
announce(SchemaKeyspace.makeCreateTableMutation(ksm, cfm, timestamp), announceLocally);
|
||||
}
|
||||
|
||||
public static void announceNewView(ViewDefinition view, boolean announceLocally) throws ConfigurationException
|
||||
|
|
|
|||
Loading…
Reference in New Issue