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
b44b27ef
Commit
b44b27ef
authored
Sep 08, 2016
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log to file that commit/blob indexing has started
parent
2eab479c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
bin/elastic_repo_indexer
bin/elastic_repo_indexer
+2
-6
No files found.
bin/elastic_repo_indexer
View file @
b44b27ef
...
@@ -54,22 +54,18 @@ repo = Repository.new
...
@@ -54,22 +54,18 @@ repo = Repository.new
params
=
{
from_rev:
FROM_SHA
,
to_rev:
TO_SHA
}.
compact
params
=
{
from_rev:
FROM_SHA
,
to_rev:
TO_SHA
}.
compact
print
"Indexing commits..."
LOGGER
.
info
(
"Indexing commits started"
)
timings
=
Benchmark
.
measure
do
timings
=
Benchmark
.
measure
do
repo
.
index_commits
(
params
)
repo
.
index_commits
(
params
)
end
end
puts
"Done"
LOGGER
.
info
(
"Commits for
#{
REPO_PATH
}
are indexed. Time elapsed:
#{
timings
.
real
}
"
)
LOGGER
.
info
(
"Commits for
#{
REPO_PATH
}
are indexed. Time elapsed:
#{
timings
.
real
}
"
)
print
"Indexing blobs..."
LOGGER
.
info
(
"Indexing blobs started"
)
timings
=
Benchmark
.
measure
do
timings
=
Benchmark
.
measure
do
repo
.
index_blobs
(
params
)
repo
.
index_blobs
(
params
)
end
end
puts
"Done"
LOGGER
.
info
(
"Blobs for
#{
REPO_PATH
}
are indexed. Time elapsed:
#{
timings
.
real
}
"
)
LOGGER
.
info
(
"Blobs for
#{
REPO_PATH
}
are indexed. Time elapsed:
#{
timings
.
real
}
"
)
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