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
b98f7c95
Commit
b98f7c95
authored
Jul 31, 2020
by
Igor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove fallback to DEL, since we no longer support redis 3
parent
66d049bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
ee/lib/gitlab/elastic/elasticsearch_enabled_cache.rb
ee/lib/gitlab/elastic/elasticsearch_enabled_cache.rb
+1
-10
No files found.
ee/lib/gitlab/elastic/elasticsearch_enabled_cache.rb
View file @
b98f7c95
...
...
@@ -55,9 +55,7 @@ module Gitlab
#
# @param type [Symbol] the type of resource, `:project` or `:namespace`
def
delete
(
type
)
Gitlab
::
Redis
::
Cache
.
with
do
|
redis
|
unlink_or_delete
(
redis
,
redis_key
(
type
))
end
Gitlab
::
Redis
::
Cache
.
with
{
|
redis
|
redis
.
unlink
(
redis_key
(
type
))
}
end
private
...
...
@@ -65,13 +63,6 @@ module Gitlab
def
redis_key
(
type
)
"elasticsearch_enabled_cache:
#{
type
}
"
end
def
unlink_or_delete
(
redis
,
key
)
redis
.
unlink
(
key
)
rescue
::
Redis
::
CommandError
=>
e
Gitlab
::
ErrorTracking
.
log_exception
(
e
)
redis
.
del
(
key
)
end
end
end
end
...
...
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