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

Use full reference for RedisClusterValidator

Autoloading does not work properly when we don't use the full namespace
when we're inside a stale class that is cached in memory after code gets
unloaded by Rails.
parent a24a69ac
...@@ -72,7 +72,7 @@ module Gitlab ...@@ -72,7 +72,7 @@ module Gitlab
end end
def redis_cluster_validate!(command) def redis_cluster_validate!(command)
RedisClusterValidator.validate!(command) if @redis_cluster_validation ::Gitlab::Instrumentation::RedisClusterValidator.validate!(command) if @redis_cluster_validation
end end
def enable_redis_cluster_validation def enable_redis_cluster_validation
......
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