Skip to content

Commit

Permalink
Fix static shared_ptr in request id extension (#10713)
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored Apr 8, 2020
1 parent de12027 commit 3504d40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.0
1.14.1
4 changes: 4 additions & 0 deletions docs/root/intro/version_history.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Version history
---------------

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
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

0 comments on commit 3504d40

Please sign in to comment.