RepoSequence: Explicitly disable reflog
The purpose of RepoSequence is to be as lightweight a storage as
possible for numeric data. Recording a reflog is unnecessary.
Since the default for bare repos is to disable reflogs anyway, this is a
no-op unless someone has explicitly turned on reflogs in All-Projects or
All-Users.
Change-Id: I8c13a364790cf9b8abfc334f37332e94ec54f835
diff --git a/java/com/google/gerrit/server/notedb/RepoSequence.java b/java/com/google/gerrit/server/notedb/RepoSequence.java
index 777624a..85c6341 100644
--- a/java/com/google/gerrit/server/notedb/RepoSequence.java
+++ b/java/com/google/gerrit/server/notedb/RepoSequence.java
@@ -290,6 +290,7 @@
if (oldId != null) {
ru.setExpectedOldObjectId(oldId);
}
+ ru.disableRefLog();
ru.setNewObjectId(newId);
ru.setForceUpdate(true); // Required for non-commitish updates.
RefUpdate.Result result = ru.update(rw);