Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-03-04 14:40:12 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-03-04 15:23:13 +0300
commit456e9a3ab51c515135b8b14b1822f96d820ade8e (patch)
treeda8d364226952c55444ad4e9d5d90d0172d3d56c /internal/praefect/datastore
parent9c3d5914f9e4c888469c9ef6573b4c222e3a82b3 (diff)
replicator: Do not bump repository generation for PackRefs
Similar in spirit to fc93593cb (praefect: Stop creating replication jobs on cleanup, 2021-02-03), we're still bumping the repository generation when creating PackRefs jobs. But given that these only optimize the repository without changing the user-visible state of the repository, bumping the repository generation is only going to needlessly cause us to regard secondaries as out-of-date. Fix the issue by introducing a separate "PackRefs" change type which doesn't cause us to bump the generation.
Diffstat (limited to 'internal/praefect/datastore')
-rw-r--r--internal/praefect/datastore/datastore.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/praefect/datastore/datastore.go b/internal/praefect/datastore/datastore.go
index da76a8654..92e94e72e 100644
--- a/internal/praefect/datastore/datastore.go
+++ b/internal/praefect/datastore/datastore.go
@@ -57,6 +57,8 @@ const (
RepackIncremental = ChangeType("repack_incremental")
// Cleanup is when replication runs a repo cleanup
Cleanup = ChangeType("cleanup")
+ // PackRefs is when replication optimizes references in a repo
+ PackRefs = ChangeType("pack_refs")
)
func (ct ChangeType) String() string {