Skip to content

Commit

Permalink
Code format for MetaDataChangedSubscriber (#32704)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Aug 27, 2024
1 parent 1006ba4 commit 7d2e983
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ public synchronized void renew(final CreateOrAlterTableEvent event) {
.getActiveVersionByFullPath(event.getActiveVersionKey())), "Invalid active version: %s of key: %s", event.getActiveVersion(), event.getActiveVersionKey());
Map<String, ShardingSphereTable> tables = contextManager.getPersistServiceFacade().getMetaDataPersistService().getDatabaseMetaDataService()
.getTableMetaDataPersistService().load(event.getDatabaseName(), event.getSchemaName(), event.getTableName());
contextManager.getMetaDataContextManager().getSchemaMetaDataManager().alterSchema(event.getDatabaseName(), event.getSchemaName(),
tables.values().iterator().next(), null);
contextManager.getMetaDataContextManager().getSchemaMetaDataManager().alterSchema(event.getDatabaseName(), event.getSchemaName(), tables.values().iterator().next(), null);
refreshShardingSphereStatisticsData();
}

Expand Down

0 comments on commit 7d2e983

Please sign in to comment.