Commit 2645e1ff authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-stick_object-error' into 'master'

Fix uninitialized constant Gitlab::Database::LoadBalancing::Sticking::RackMiddleware.STICK_OBJECT

See merge request gitlab-org/gitlab!73405
parents bba25b8e be042a56
...@@ -26,8 +26,8 @@ module Gitlab ...@@ -26,8 +26,8 @@ module Gitlab
def stick_or_unstick_request(env, namespace, id) def stick_or_unstick_request(env, namespace, id)
unstick_or_continue_sticking(namespace, id) unstick_or_continue_sticking(namespace, id)
env[RackMiddleware::STICK_OBJECT] ||= Set.new env[::Gitlab::Database::LoadBalancing::RackMiddleware::STICK_OBJECT] ||= Set.new
env[RackMiddleware::STICK_OBJECT] << [self, namespace, id] env[::Gitlab::Database::LoadBalancing::RackMiddleware::STICK_OBJECT] << [self, namespace, id]
end end
# Sticks to the primary if a write was performed. # Sticks to the primary if a write was performed.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment