diff options
author | Zuul <zuul@review.opendev.org> | 2019-05-06 09:53:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-05-06 09:53:39 +0000 |
commit | 7397abd64f4c6ee322fdb33960c76e9bc3038819 (patch) | |
tree | 3af86a061c51001020fab79bf35125f62eca8601 | |
parent | b0189254b1c20b1daa1ac81d38a998b364527075 (diff) | |
parent | 5386d7c40cdaef39a08b69fcce96467a5396c6ee (diff) | |
download | osprofiler-7397abd64f4c6ee322fdb33960c76e9bc3038819.tar.gz |
Merge "change function list_traces of mongodb module"
-rw-r--r-- | osprofiler/drivers/mongodb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osprofiler/drivers/mongodb.py b/osprofiler/drivers/mongodb.py index 0ca1928..7713baf 100644 --- a/osprofiler/drivers/mongodb.py +++ b/osprofiler/drivers/mongodb.py @@ -81,7 +81,7 @@ class MongoDB(base.Driver): at least `base_id` and `timestamp`. """ fields = set(fields or self.default_trace_fields) - ids = self.db.profiler.find("*").distinct("base_id") + ids = self.db.profiler.find({}).distinct("base_id") out_format = {"base_id": 1, "timestamp": 1, "_id": 0} out_format.update({i: 1 for i in fields}) return [self.db.profiler.find( |