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
757586b3
Commit
757586b3
authored
Mar 26, 2018
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent unnecessary, excessive updates
parent
652a78c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
ee/app/workers/geo/project_sync_worker.rb
ee/app/workers/geo/project_sync_worker.rb
+4
-3
ee/changelogs/unreleased/mk-geo-fix-noise-when-wiki-is-disabled.yml
...ogs/unreleased/mk-geo-fix-noise-when-wiki-is-disabled.yml
+5
-0
No files found.
ee/app/workers/geo/project_sync_worker.rb
View file @
757586b3
...
@@ -33,14 +33,15 @@ module Geo
...
@@ -33,14 +33,15 @@ module Geo
return
if
registry
.
project
.
wiki_enabled?
return
if
registry
.
project
.
wiki_enabled?
registry
.
last_wiki_sync_failure
=
nil
registry
.
last_wiki_sync_failure
=
nil
registry
.
last_wiki_synced_at
=
DateTime
.
now
registry
.
last_wiki_successful_sync_at
=
DateTime
.
now
registry
.
resync_wiki
=
false
registry
.
resync_wiki
=
false
registry
.
wiki_retry_count
=
nil
registry
.
wiki_retry_count
=
nil
registry
.
wiki_retry_at
=
nil
registry
.
wiki_retry_at
=
nil
registry
.
force_to_redownload_wiki
=
false
registry
.
force_to_redownload_wiki
=
false
if
registry
.
changed?
if
registry
.
changed?
||
registry
.
last_wiki_synced_at
.
nil?
||
registry
.
last_wiki_successful_sync_at
.
nil?
registry
.
last_wiki_synced_at
=
DateTime
.
now
registry
.
last_wiki_successful_sync_at
=
DateTime
.
now
success
=
registry
.
save
success
=
registry
.
save
log_info
(
"
#{
success
?
'Successfully marked'
:
'Failed to mark'
}
disabled wiki as synced"
,
registry_id:
registry
.
id
,
project_id:
registry
.
project_id
)
log_info
(
"
#{
success
?
'Successfully marked'
:
'Failed to mark'
}
disabled wiki as synced"
,
registry_id:
registry
.
id
,
project_id:
registry
.
project_id
)
end
end
...
...
ee/changelogs/unreleased/mk-geo-fix-noise-when-wiki-is-disabled.yml
0 → 100644
View file @
757586b3
---
title
:
Fix excessive updates to file_registry when wiki is disabled
merge_request
:
5119
author
:
type
:
fixed
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