src/java/org/apache/cassandra/db/Directories.java
/**
     * Move sstables from the pre-#2749 layout to their new location/names.
     * This involves:
     *   - moving each sstable to their CF specific directory
     *   - rename the sstable to include the keyspace in the filename
     *
     * Note that this also move leveled manifests, snapshots and backups.
     */
Move sstables from the pre-#2749 layout to their new location/names.
This involves:
- moving each sstable to their CF specific directory
- rename the sstable to include the keyspace in the filename

Note that this also move leveled manifests, snapshots and backups.
Move sstables from the pre - #2749 layout to their new location / names . This involves : - moving each sstable to their CF specific directory - rename the sstable to include the keyspace in the filename Note that this also move leveled manifests snapshots and backups .
public static void migrateSSTables()
    {
        logger.info("Upgrade from pre-1.1 version detected: migrating sstables to new directory layout");
        for (File location : dataFileLocations)
        {
            if (!location.exists() || !location.isDirectory())
                continue;
            for (File ksDir : location.listFiles())
            {
                if (!ksDir.isDirectory())
                    continue;
                for (File file : ksDir.listFiles())
                    migrateFile(file, ksDir, null);
                migrateSnapshots(ksDir);
                migrateBackups(ksDir);
            }
        }
    }
public static void migrateSSTables ( ) { logger . info ( "Upgrade from pre-1.1 version detected: migrating sstables to new directory layout" ) ; for ( File location : dataFileLocations ) { if ( ! location . exists ( ) || ! location . isDirectory ( ) ) continue ; for ( File ksDir : location . listFiles ( ) ) { if ( ! ksDir . isDirectory ( ) ) continue ; for ( File file : ksDir . listFiles ( ) ) migrateFile ( file , ksDir , null ) ; migrateSnapshots ( ksDir ) ; migrateBackups ( ksDir ) ; } } }
Move sstables from the pre-#2749 layout to their new location/names.
Move sstables from the pre - #2749 layout to their new location / names .