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
80a3d835
Commit
80a3d835
authored
Feb 05, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: Make elastic indexer more stable
parent
69980498
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
CHANGELOG-EE
CHANGELOG-EE
+1
-0
lib/tasks/gitlab/elastic.rake
lib/tasks/gitlab/elastic.rake
+7
-6
No files found.
CHANGELOG-EE
View file @
80a3d835
...
...
@@ -7,6 +7,7 @@ v 8.5.0 (unreleased)
v 8.4.4
- Re-introduce "Send email to users" link in Admin area
- Fix category values for Jenkins and JenkinsDeprecated services
- Make elastic indexer more stable
v 8.4.3
- Elasticsearch: fix partial blob indexing on push
...
...
lib/tasks/gitlab/elastic.rake
View file @
80a3d835
...
...
@@ -11,14 +11,15 @@ namespace :gitlab do
puts
"Indexing
#{
project
.
name_with_namespace
}
(ID=
#{
project
.
id
}
)..."
index_status
=
IndexStatus
.
find_or_create_by
(
project:
project
)
head_sha
=
project
.
repository
.
commit
.
sha
if
index_status
.
last_commit
==
head_sha
puts
"Skipped"
.
yellow
next
end
begin
head_sha
=
project
.
repository
.
commit
.
sha
if
index_status
.
last_commit
==
head_sha
puts
"Skipped"
.
yellow
next
end
project
.
repository
.
index_commits
(
from_rev:
project
.
index_status
.
last_commit
)
project
.
repository
.
index_blobs
(
from_rev:
project
.
index_status
.
last_commit
)
...
...
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