ceph: fix the metric list to process with new measures
Currently, the list returned in the Ceph driver contains a lot of
doubloons because it returns a list and not a set. If 1 metric has N new
measures batch waiting to be processed, the list return will be size N
and not 1.
Using a set() avoids that issue and the memory draining implied.
Reviewed: https:/ /review. openstack. org/267692 /git.openstack. org/cgit/ openstack/ gnocchi/ commit/ ?id=614e13d47fd caeea9d41bebc21 4014e0c83a0e83
Committed: https:/
Submitter: Jenkins
Branch: master
commit 614e13d47fdcaee a9d41bebc214014 e0c83a0e83
Author: Julien Danjou <email address hidden>
Date: Thu Jan 14 17:31:14 2016 +0100
ceph: fix the metric list to process with new measures
Currently, the list returned in the Ceph driver contains a lot of
doubloons because it returns a list and not a set. If 1 metric has N new
measures batch waiting to be processed, the list return will be size N
and not 1.
Using a set() avoids that issue and the memory draining implied.
Closes-Bug: #1533793 7a23a365babc1a2 537fb4d1052
Change-Id: I3a0b726aae14a1