Add sanity check into ThreadStatus::disableProfiling()

This commit is contained in:
Azat Khuzhin 2021-11-25 21:06:57 +03:00
parent 2840405c8a
commit ee0258e128

View File

@ -207,6 +207,7 @@ public:
void disableProfiling()
{
assert(!query_profiler_real && !query_profiler_cpu);
query_profiler_enabled = false;
}