diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-06-05 02:41:13 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-06-05 02:41:13 +0200 |
commit | 2a8bbe57425a1f4c0a12643aa033d77afbdc23b9 (patch) | |
tree | 11f3ef8260c46e7a5ac2cdaa8ad53ba420a79d95 | |
parent | 371b7f613df039ddd8d3a2729b2974525f846a3e (diff) | |
download | gitlab-ce-gitaly-gc-repack-opt-out.tar.gz |
-rw-r--r-- | app/workers/git_garbage_collect_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/git_garbage_collect_worker.rb b/app/workers/git_garbage_collect_worker.rb index 659c9ac23f9..f3c9e2b1582 100644 --- a/app/workers/git_garbage_collect_worker.rb +++ b/app/workers/git_garbage_collect_worker.rb @@ -114,8 +114,8 @@ class GitGarbageCollectWorker %W[git -c repack.writeBitmaps=#{config_value}] end - def gitaly_migrate(method, &block) - Gitlab::GitalyClient.migrate(method, &block) + def gitaly_migrate(method, status: Gitlab::GitalyClient::MigrationStatus::OPT_IN, &block) + Gitlab::GitalyClient.migrate(method, status: status, &block) rescue GRPC::NotFound => e Gitlab::GitLogger.error("#{method} failed:\nRepository not found") raise Gitlab::Git::Repository::NoRepository.new(e) |