OnlineCache onlineCache = getOnlineCache(session, oldAIS);
for(Integer tid : tableIDs) {
Long curOwner = onlineCache.tableToOnline.get(tid);
if((curOwner != null) && (onlineSession == null || !curOwner.equals(onlineSession.id))) {
throw new OnlineDDLInProgressException(tid);
}
}
for(String name : schemas) {
Long curOwner = onlineCache.schemaToOnline.get(name);
if((curOwner != null) && (onlineSession == null || !curOwner.equals(onlineSession.id))) {
throw new OnlineDDLInProgressException(name);
}
}
bumpTableVersions(session, newAIS, tableIDs);