From 6f18cd772c02b694cbc784f064ebb6aa44d96a47 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 2 Sep 2020 13:07:23 +0300 Subject: [PATCH] fixes --- src/Core/Settings.h | 3 ++- src/Storages/System/StorageSystemEvents.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Core/Settings.h b/src/Core/Settings.h index b68561ad598..cb1150c17a3 100644 --- a/src/Core/Settings.h +++ b/src/Core/Settings.h @@ -380,7 +380,8 @@ class IColumn; M(Bool, cast_keep_nullable, false, "CAST operator keep Nullable for result data type", 0) \ M(Bool, alter_partition_verbose_result, false, "Output information about affected parts. Currently works only for FREEZE and ATTACH commands.", 0) \ M(Bool, allow_experimental_database_materialize_mysql, false, "Allow to create database with Engine=MaterializeMySQL(...).", 0) \ \ - M(Bool, system_events_show_zero_values, false, "Include all metrics, even with zero values", 0) \ + M(Bool, system_events_show_zero_values, false, "Include all metrics, even with zero values", 0) \ \ + \ /** Obsolete settings that do nothing but left for compatibility reasons. Remove each one after half a year of obsolescence. */ \ \ M(Bool, allow_experimental_low_cardinality_type, true, "Obsolete setting, does nothing. Will be removed after 2019-08-13", 0) \ diff --git a/src/Storages/System/StorageSystemEvents.cpp b/src/Storages/System/StorageSystemEvents.cpp index aa442245396..a877d7c5265 100644 --- a/src/Storages/System/StorageSystemEvents.cpp +++ b/src/Storages/System/StorageSystemEvents.cpp @@ -21,7 +21,7 @@ void StorageSystemEvents::fillData(MutableColumns & res_columns, const Context & { UInt64 value = ProfileEvents::global_counters[i]; - if (0 != value || context.getSettingsRef().system_events_show_zero_values)) + if (0 != value || context.getSettingsRef().system_events_show_zero_values) { res_columns[0]->insert(ProfileEvents::getName(ProfileEvents::Event(i))); res_columns[1]->insert(value);