From d4ace01b816b2f9d970a8061969366b5f459d6bc Mon Sep 17 00:00:00 2001 From: gord chung <gord@live.ca> Date: Tue, 14 May 2019 23:20:24 -0400 Subject: [PATCH] remove unused statistic code this was previously used to log the aggregation performance (points/time). this logging doesn't exist anymore since we moved to bulk saving so remove it. --- gnocchi/storage/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gnocchi/storage/__init__.py b/gnocchi/storage/__init__.py index ff66d355..936710a7 100644 --- a/gnocchi/storage/__init__.py +++ b/gnocchi/storage/__init__.py @@ -630,11 +630,6 @@ class StorageDriver(object): else: current_first_block_timestamp = ts.first_block_timestamp() - # NOTE(jd) This is Python where you need such - # hack to pass a variable around a closure, - # sorry. - computed_points = {"number": 0} - def _map_compute_splits_operations(bound_timeserie): # NOTE (gordc): bound_timeserie is entire set of # unaggregated measures matching largest @@ -644,8 +639,6 @@ class StorageDriver(object): new_first_block_timestamp = ( bound_timeserie.first_block_timestamp() ) - computed_points['number'] = len(bound_timeserie) - aggregations = metric.archive_policy.aggregations grouped_timeseries = { -- GitLab