checkConcurrency(recordType.getName(), nameBytes, now);
// FIXME: is this a reliable check? Cache might be out of date in case changes happen on other nodes?
if (getRecordTypeFromCache(recordType.getName(), recordType.getVersion()) != null) {
clearConcurrency(nameBytes, now);
throw new RecordTypeExistsException(recordType);
}
Collection<FieldTypeEntry> fieldTypeEntries = recordType.getFieldTypeEntries();
for (FieldTypeEntry fieldTypeEntry : fieldTypeEntries) {
putFieldTypeEntry(recordTypeVersion, put, fieldTypeEntry);