Commit a872434b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'fix-another-load-balancing-sticking-autoload-issue' into 'master'

Fix undefined method performed_write? error in GDK

See merge request gitlab-org/gitlab!72346
parents da8f1098 9c7021b7
...@@ -33,7 +33,7 @@ module Gitlab ...@@ -33,7 +33,7 @@ module Gitlab
# Sticks to the primary if a write was performed. # Sticks to the primary if a write was performed.
def stick_if_necessary(namespace, id) def stick_if_necessary(namespace, id)
stick(namespace, id) if Session.current.performed_write? stick(namespace, id) if ::Gitlab::Database::LoadBalancing::Session.current.performed_write?
end end
def all_caught_up?(namespace, id) def all_caught_up?(namespace, id)
......
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