diff --git a/docs/root/intro/version_history.rst b/docs/root/intro/version_history.rst index fc7dba8d2233a..862cb47cd223f 100644 --- a/docs/root/intro/version_history.rst +++ b/docs/root/intro/version_history.rst @@ -4,6 +4,10 @@ Version history 1.15.0 (Pending) ================ +1.14.1 (April 8, 2020) +====================== +* request_id_extension: fixed static initialization for noop request id extension. + 1.14.0 (April 8, 2020) ====================== * access log: access logger extensions use the "envoy.access_loggers" name space. A mapping diff --git a/source/common/http/request_id_extension_impl.cc b/source/common/http/request_id_extension_impl.cc index 1e1e975c487f9..ed4022712fc09 100644 --- a/source/common/http/request_id_extension_impl.cc +++ b/source/common/http/request_id_extension_impl.cc @@ -45,8 +45,8 @@ RequestIDExtensionFactory::defaultInstance(Envoy::Runtime::RandomGenerator& rand } RequestIDExtensionSharedPtr RequestIDExtensionFactory::noopInstance() { - static RequestIDExtensionSharedPtr global = std::make_shared(); - return global; + MUTABLE_CONSTRUCT_ON_FIRST_USE(std::shared_ptr, + std::make_shared()); } } // namespace Http