Commit be042a56 authored by Lee Tickett's avatar Lee Tickett

Fix uninitialized constant STICK_OBJECT

Changelog: fixed
parent 175d0cc9
...@@ -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