Commit 1931c3ef authored by Peter Leitzen's avatar Peter Leitzen

Fix error when reloading code in Sidekiq

This commit fixes the following error in development:

    ArgumentError: A copy of Gitlab::Metrics::Transaction has been
    removed from the module tree but is still active!
parent 5b23f2b0
......@@ -173,7 +173,7 @@ if Gitlab::Metrics.enabled? && !Rails.env.test? && !(Rails.env.development? && d
def connect(*args)
val = super
if current_transaction = Gitlab::Metrics::Transaction.current
if current_transaction = ::Gitlab::Metrics::Transaction.current
current_transaction.increment(:new_redis_connections, 1)
end
......
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