Commit 4174fc1a authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-24295: Fix the WITH_MSAN build

For some reason, commit 5bb5d4ad
made clang++-11 unhappy about a constexpr declaration.
parent 9b725f9a
......@@ -561,7 +561,12 @@ void thread_pool_generic::worker_main(worker_data *thread_var)
Helper function, to be used inside maintenance callback,
before m_last_activity is updated
*/
constexpr auto invalid_timestamp= std::chrono::system_clock::time_point::max();
#if __has_feature(memory_sanitizer)
const /* WITH_MSAN in clang++-11 does not work with constexpr */
#else
constexpr
#endif
auto invalid_timestamp= std::chrono::system_clock::time_point::max();
constexpr auto max_idle_time= std::chrono::minutes(1);
/* Time since maintenance timer had nothing to do */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment