int updateCount = iom.internalUpdate();
if (!servers.isEmpty()) {
List<CommandInterface> commands = New.arrayList(servers.size());
for (Map.Entry<String, Map<String, List<String>>> e : servers.entrySet()) {
CommandRemote c = SessionRemotePool.getCommandRemote(session, prepared, e.getKey(), //
getPlanSQL(insertFromSelect, sortedInsertMode, e.getValue().entrySet()));
commands.add(c);
}
updateCount += CommandParallel.executeUpdate(commands);
}
if (table.isColumnsModified()) {
table.setColumnsModified(false);
SessionInterface si = SessionRemotePool.getMasterSessionRemote(session.getOriginalProperties());
for (Column c : alterColumns) {
CommandInterface ci = si.prepareCommand(alterTable + c.getCreateSQL(true), 1);
ci.executeUpdate();
}
}
if (isTopTransaction)
session.commit(false);