Commit 10653fab authored by Andreas Brandl's avatar Andreas Brandl

Add relative bloat level to logging

parent 2d15b97d
...@@ -61,7 +61,8 @@ module Gitlab ...@@ -61,7 +61,8 @@ module Gitlab
index: index.identifier, index: index.identifier,
table: index.tablename, table: index.tablename,
estimated_bloat_bytes: bloat_size, estimated_bloat_bytes: bloat_size,
index_size_before_bytes: ondisk_size_before index_size_before_bytes: ondisk_size_before,
relative_bloat_level: index.relative_bloat_level
) )
duration = Benchmark.realtime do duration = Benchmark.realtime do
...@@ -77,6 +78,7 @@ module Gitlab ...@@ -77,6 +78,7 @@ module Gitlab
estimated_bloat_bytes: bloat_size, estimated_bloat_bytes: bloat_size,
index_size_before_bytes: ondisk_size_before, index_size_before_bytes: ondisk_size_before,
index_size_after_bytes: index.ondisk_size_bytes, index_size_after_bytes: index.ondisk_size_bytes,
relative_bloat_level: index.relative_bloat_level,
duration_s: duration.round(2) duration_s: duration.round(2)
) )
end 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