summaryrefslogtreecommitdiff
path: root/src/mongo/embedded/embedded.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-04-30 15:46:10 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2019-05-16 16:38:58 -0400
commit8c4f95e45b8cf32c61f73bc4e2dd3beaa97e190c (patch)
tree7031f6d306c4c6adfac00c47cd925b729c324d5f /src/mongo/embedded/embedded.cpp
parent39413ef58dd1f667728b67c86e1bf09146952242 (diff)
downloadmongo-8c4f95e45b8cf32c61f73bc4e2dd3beaa97e190c.tar.gz
SERVER-40811 reduce GlobalInitializerRegisterer constructors
Diffstat (limited to 'src/mongo/embedded/embedded.cpp')
-rw-r--r--src/mongo/embedded/embedded.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/embedded/embedded.cpp b/src/mongo/embedded/embedded.cpp
index 13e9d4ddc75..705a620731c 100644
--- a/src/mongo/embedded/embedded.cpp
+++ b/src/mongo/embedded/embedded.cpp
@@ -127,8 +127,6 @@ MONGO_INITIALIZER(fsyncLockedForWriting)(InitializerContext* context) {
GlobalInitializerRegisterer filterAllowedIndexFieldNamesEmbeddedInitializer(
"FilterAllowedIndexFieldNamesEmbedded",
- {},
- {"FilterAllowedIndexFieldNames"},
[](InitializerContext* service) {
index_key_validate::filterAllowedIndexFieldNames =
[](std::set<StringData>& allowedIndexFieldNames) {
@@ -136,7 +134,10 @@ GlobalInitializerRegisterer filterAllowedIndexFieldNamesEmbeddedInitializer(
allowedIndexFieldNames.erase(IndexDescriptor::kExpireAfterSecondsFieldName);
};
return Status::OK();
- });
+ },
+ DeinitializerFunction(nullptr),
+ {},
+ {"FilterAllowedIndexFieldNames"});
} // namespace
using logger::LogComponent;