@Override
protected void storedOnlineChange(Session session,
OnlineSession onlineSession,
AkibanInformationSchema newAIS,
Collection<String> schemas) {
Exchange ex = schemaTreeExchange(session);
try {
// Get a unique generation for this AIS, but will only be visible to owning session
createValidatedShared(session, newAIS, GenValue.NEW, GenMap.NO_PUT);
// And a new generation for the current so no one else will think the one for newAIS is theirs
getNextGeneration(session);
saveMetaAndDataVersions(ex);
// online,cid => generation
ex.clear().append(S_K_ONLINE).append(onlineSession.id);
ex.getValue().put(newAIS.getGeneration());
ex.store();
// online,cid,protobuf,schema = bytes
ByteBuffer buffer = null;
ex.append(S_K_PROTOBUF).append("");
for(String name : schemas) {
ex.to(name);
buffer = storeProtobuf(ex, buffer, newAIS, name);
}
addCallbacksForAISChange(session);
} catch(PersistitException | RollbackException e) {