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
efd9a709
Commit
efd9a709
authored
Jul 23, 2020
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move logging to actual logic
parent
8614e246
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/workers/partition_creation_worker.rb
app/workers/partition_creation_worker.rb
+0
-2
lib/gitlab/database/partitioning/partition_creator.rb
lib/gitlab/database/partitioning/partition_creator.rb
+2
-0
No files found.
app/workers/partition_creation_worker.rb
View file @
efd9a709
...
...
@@ -8,8 +8,6 @@ class PartitionCreationWorker
idempotent!
def
perform
Gitlab
::
AppLogger
.
info
(
"Checking state of dynamic postgres partitions"
)
Gitlab
::
Database
::
Partitioning
::
PartitionCreator
.
new
.
create_partitions
end
end
lib/gitlab/database/partitioning/partition_creator.rb
View file @
efd9a709
...
...
@@ -26,6 +26,8 @@ module Gitlab
def
create_partitions
return
unless
Feature
.
enabled?
(
:postgres_dynamic_partition_creation
,
default_enabled:
true
)
Gitlab
::
AppLogger
.
info
(
"Checking state of dynamic postgres partitions"
)
models
.
each
do
|
model
|
# Double-checking before getting the lease:
# The prevailing situation is no missing partitions
...
...
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