Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
20fb4b74
Commit
20fb4b74
authored
May 08, 2018
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor `period_match?` to reuse `task`
parent
60a22a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/services/geo/project_housekeeping_service.rb
ee/app/services/geo/project_housekeeping_service.rb
+2
-2
No files found.
ee/app/services/geo/project_housekeeping_service.rb
View file @
20fb4b74
...
@@ -76,13 +76,13 @@ module Geo
...
@@ -76,13 +76,13 @@ module Geo
:gc
:gc
elsif
syncs_since_gc
%
full_repack_period
==
0
elsif
syncs_since_gc
%
full_repack_period
==
0
:full_repack
:full_repack
els
e
els
if
syncs_since_gc
%
repack_period
==
0
:incremental_repack
:incremental_repack
end
end
end
end
def
period_match?
def
period_match?
[
gc_period
,
full_repack_period
,
repack_period
].
any?
{
|
period
|
syncs_since_gc
%
period
==
0
}
task
.
present?
end
end
def
housekeeping_enabled?
def
housekeeping_enabled?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment