summaryrefslogtreecommitdiff
path: root/app/workers/clear_database_cache_worker.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-04-11 19:54:04 +0100
committerNick Thomas <nick@gitlab.com>2017-04-21 11:52:28 +0100
commit6647542cd4db5f5aba36ae7d7d029bdaf8b59a35 (patch)
treea6ba4d4bfa402220cce413528541c49e7176b0b9 /app/workers/clear_database_cache_worker.rb
parentbc14c4f03b6f735d92533f7596fadf9bd41372b6 (diff)
downloadgitlab-ce-6647542cd4db5f5aba36ae7d7d029bdaf8b59a35.tar.gz
Fix Gitlab::Metrics metaprogramming magic
On initial startup with no rows in the application_settings table, the metaprogramming call to `if enabled?` attempts to create a row. This triggers the HTML caching path, which attempts to store metrics. At this point, not all the methods in `Gitlab::Metrics` have been defined! Move `current_transaction` to be defined before running the metaprogramming, to avoid a confusing NoMethodError
Diffstat (limited to 'app/workers/clear_database_cache_worker.rb')
0 files changed, 0 insertions, 0 deletions