diff --git a/core/src/main/java/google/registry/backup/BackupUtils.java b/core/src/main/java/google/registry/backup/BackupUtils.java index 8a036f319..14d55d7aa 100644 --- a/core/src/main/java/google/registry/backup/BackupUtils.java +++ b/core/src/main/java/google/registry/backup/BackupUtils.java @@ -41,11 +41,12 @@ public class BackupUtils { } /** - * Converts the given {@link ImmutableObject} to a raw Datastore entity and write it to an - * {@link OutputStream} in delimited protocol buffer format. + * Converts the given {@link ImmutableObject} to a raw Datastore entity and write it to an {@link + * OutputStream} in delimited protocol buffer format. */ static void serializeEntity(ImmutableObject entity, OutputStream stream) throws IOException { - EntityTranslator.convertToPb(auditedOfy().save().toEntity(entity)).writeDelimitedTo(stream); + EntityTranslator.convertToPb(auditedOfy().saveIgnoringReadOnly().toEntity(entity)) + .writeDelimitedTo(stream); } /** diff --git a/core/src/main/java/google/registry/backup/CommitLogCheckpointAction.java b/core/src/main/java/google/registry/backup/CommitLogCheckpointAction.java index 3312aaac8..13343e9db 100644 --- a/core/src/main/java/google/registry/backup/CommitLogCheckpointAction.java +++ b/core/src/main/java/google/registry/backup/CommitLogCheckpointAction.java @@ -74,7 +74,7 @@ public final class CommitLogCheckpointAction implements Runnable { return; } auditedOfy() - .saveWithoutBackup() + .saveIgnoringReadOnly() .entities( checkpoint, CommitLogCheckpointRoot.create(checkpoint.getCheckpointTime())); // Enqueue a diff task between previous and current checkpoints.