mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Move domainCreateFailfast before cloneAndLinkReferences
This avoids loading all contacts and hosts before the failfast runs ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154179321
This commit is contained in:
@@ -139,8 +139,8 @@ public class DomainAllocateFlow implements TransactionalFlow {
|
||||
validateClientIsLoggedIn(clientId);
|
||||
verifyIsSuperuser();
|
||||
DateTime now = ofy().getTransactionTime();
|
||||
Create command = cloneAndLinkReferences((Create) resourceCommand, now);
|
||||
failfastForCreate(targetId, now);
|
||||
Create command = cloneAndLinkReferences((Create) resourceCommand, now);
|
||||
verifyResourceDoesNotExist(DomainResource.class, targetId, now);
|
||||
InternetDomainName domainName = validateDomainName(command.getFullyQualifiedDomainName());
|
||||
Registry registry = Registry.get(domainName.parent().toString());
|
||||
|
||||
Reference in New Issue
Block a user