mirror of https://github.com/apache/cassandra
newer 5195 patch
This commit is contained in:
parent
01d81d2765
commit
426041368f
|
|
@ -323,6 +323,8 @@ public class DefsTable
|
|||
// store deserialized keyspaces into new place
|
||||
dumpToStorage(keyspaces);
|
||||
|
||||
flushSchemaCFs();
|
||||
|
||||
logger.info("Truncating deprecated system column families (migrations, schema)...");
|
||||
dropColumnFamily(Table.SYSTEM_TABLE, OLD_MIGRATIONS_CF);
|
||||
dropColumnFamily(Table.SYSTEM_TABLE, OLD_SCHEMA_CF);
|
||||
|
|
|
|||
|
|
@ -55,7 +55,9 @@ public class StandaloneScrubber
|
|||
Options options = Options.parseArgs(args);
|
||||
try
|
||||
{
|
||||
Directories.migrateSSTables();
|
||||
// Migrate sstables from pre-#2749 to the correct location
|
||||
if (Directories.sstablesNeedsMigration())
|
||||
Directories.migrateSSTables();
|
||||
|
||||
// load keyspace descriptions.
|
||||
DatabaseDescriptor.loadSchemas();
|
||||
|
|
|
|||
Loading…
Reference in New Issue