Description
STR:
I generated queries for the next types:
count()
aggregate()
findandmodify()
distinct()
And it seems there are some problem with explain for these queries
For all these types explain returns:
(InvalidNamespace) Mismatched $db in explain command. Expected admin but got sbtest: cannot explain this type of query
For distinct query:
{"service_id":"/service_id/03f30f98-5a15-4191-be5b-2f707c166f18","query":"{\"ns\":\"sbtest.inventory\",\"op\":\"command\",\"command\":{\"distinct\":\"inventory\",\"key\":\"item.sku\",\"query\":{},\"lsid\":{\"id\":{\"$binary\":{\"base64\":\"XfBTls2VQ8uoNOn4s1luPw==\",\"subType\":\"04\"}}},\"$db\":\"sbtest\"}}"}
I executed the same queries for PMM 1.17.3 and explain worked ok: