use of com.palantir.common.annotation.Idempotent in project atlasdb by palantir.
the class TransactionManagersInitializer method tryInitialize.
@Override
@Idempotent
public synchronized void tryInitialize() {
TransactionTables.createTables(keyValueService);
for (Schema schema : schemas) {
Schemas.createTablesAndIndexes(schema, keyValueService);
schemaMetadataService.putSchemaMetadata(schema.getName(), schema.getSchemaMetadata());
}
// Prime the key value service with logging information.
// TODO (jkong): Needs to be changed if/when we support dynamic table creation.
LoggingArgs.hydrate(keyValueService.getMetadataForTables());
}
Aggregations