Fixing build.

This commit is contained in:
Nikolai Kochetov 2022-07-20 20:45:29 +00:00
parent fc6982f9e2
commit 6028f7909b
2 changed files with 3 additions and 3 deletions

View File

@ -664,12 +664,12 @@ void AsynchronousMetrics::update(std::chrono::system_clock::time_point update_ti
new_values["jemalloc.epoch"] = epoch;
// Collect the statistics themselves.
size_t je_malloc_allocated = saveJemallocMetric<size_t>(new_values, "allocated");
[[maybe_unused]] size_t je_malloc_allocated = saveJemallocMetric<size_t>(new_values, "allocated");
saveJemallocMetric<size_t>(new_values, "active");
saveJemallocMetric<size_t>(new_values, "metadata");
saveJemallocMetric<size_t>(new_values, "metadata_thp");
saveJemallocMetric<size_t>(new_values, "resident");
size_t je_malloc_mapped = saveJemallocMetric<size_t>(new_values, "mapped");
[[maybe_unused]] size_t je_malloc_mapped = saveJemallocMetric<size_t>(new_values, "mapped");
saveJemallocMetric<size_t>(new_values, "retained");
saveJemallocMetric<size_t>(new_values, "background_thread.num_threads");
saveJemallocMetric<uint64_t>(new_values, "background_thread.num_runs");

View File

@ -43,7 +43,7 @@ def test_memory_tracking_total():
"-c",
"clickhouse local -q \"SELECT arrayStringConcat(arrayMap(x->toString(cityHash64(x)), range(1000)), ' ') from numbers(10000)\" > data.json",
],
user="root"
user="root",
)
for it in range(0, 20):