Update QueryProfiler.cpp

This commit is contained in:
alexey-milovidov 2020-01-26 14:27:12 +03:00 committed by GitHub
parent 9602e67050
commit 056aba49ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ QueryProfilerBase<ProfilerImpl>::QueryProfilerBase(const Int32 thread_id, const
#endif #endif
if (timer_create(clock_type, &sev, &timer_id)) if (timer_create(clock_type, &sev, &timer_id))
{ {
/// In Google Cloud Runner, the function "timer_create" is implemented incorrectly as of 2020-01-25. /// In Google Cloud Run, the function "timer_create" is implemented incorrectly as of 2020-01-25.
/// https://mybranch.dev/posts/clickhouse-on-cloud-run/ /// https://mybranch.dev/posts/clickhouse-on-cloud-run/
if (errno == 0) if (errno == 0)
throw Exception("Failed to create thread timer. The function 'timer_create' returned non-zero but didn't set errno. This is bug in your OS.", throw Exception("Failed to create thread timer. The function 'timer_create' returned non-zero but didn't set errno. This is bug in your OS.",