txnService.rollbackTransactionIfOpen(session);
}
}
private void dropGroupInternal(final Session session, TableName groupName) {
final Group group = getAIS(session).getGroup(groupName);
if(group == null) {
return;
}
store().dropGroup(session, group);
group.visit(new AbstractVisitor() {
@Override
public void visit(Table table) {
for(TableListener listener : listenerService.getTableListeners()) {
listener.onDrop(session, table);
}
}
});
Table root = group.getRoot();
schemaManager().dropTableDefinition(session, root.getName().getSchemaName(), root.getName().getTableName(),
SchemaManager.DropBehavior.CASCADE);
}