Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/root/intro/version_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version history

1.15.0 (Pending)
================
* request_id_extension: fixed static initialization for noop request id extension.
Comment thread
asraa marked this conversation as resolved.

1.14.0 (April 8, 2020)
======================
Expand Down
4 changes: 2 additions & 2 deletions source/common/http/request_id_extension_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ RequestIDExtensionFactory::defaultInstance(Envoy::Runtime::RandomGenerator& rand
}

RequestIDExtensionSharedPtr RequestIDExtensionFactory::noopInstance() {
static RequestIDExtensionSharedPtr global = std::make_shared<NoopRequestIDExtension>();
return global;
MUTABLE_CONSTRUCT_ON_FIRST_USE(std::shared_ptr<RequestIDExtension>,
std::make_shared<NoopRequestIDExtension>());
}

} // namespace Http
Expand Down