schema_tables: Notify about table creation after it is fully inited

I'm not aware of any issues it could cause, but it makes more sense
that way.
This commit is contained in:
Tomasz Grabiec
2016-01-08 19:13:37 +01:00
parent b6c6ee5360
commit 71bbbceced

View File

@@ -703,8 +703,8 @@ static void merge_tables(distributed<service::storage_proxy>& proxy,
auto& ks = db.find_keyspace(s->ks_name());
auto cfg = ks.make_column_family_config(*s);
db.add_column_family(s, cfg);
service::get_local_migration_manager().notify_create_column_family(s);
ks.make_directory_for_column_family(s->cf_name(), s->id());
service::get_local_migration_manager().notify_create_column_family(s);
}
for (auto&& gs : altered) {
update_column_family(db, gs.get());