jmikola / mongoqp

A frontend for MongoDB's query profiler collection.
MIT License
170 stars 25 forks source link

set slave ok when getting collection names #17

Closed jarvinia closed 6 years ago

jmikola commented 9 years ago

This seems incomplete, given that it only affects collection enumeration. The getProfilingLevel(), setProfilingLevel(), and getProfilingData() methods likely need the same treatment.

jarvinia commented 9 years ago

I don't know why. I only check the slaveOk in the public function getCollections($database) , public function getProfilingData($database, $collection = null) methods. However, my web server works very well. And I can reset profiling level and get profiling status as well.