summaryrefslogtreecommitdiff
path: root/src/mongo/base/shim.h
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-05-11 12:59:17 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2018-05-11 12:59:17 -0400
commitecf8ad987548705e773d23d5ddc3973cbc1ea7e5 (patch)
tree62164575b6303aebecbe41670c74b713cfa314c7 /src/mongo/base/shim.h
parent56cbcf28c6bd4d9f9e739fb834d83b61c99516f1 (diff)
downloadmongo-ecf8ad987548705e773d23d5ddc3973cbc1ea7e5.tar.gz
SERVER-33008 Slice Authorization framework
The Authorization framework was intertwined with many subsystems and needed to be properly abstracted in order to facilitate cutting down on certain unnecessary dependencies in some libraries. This also facilitates creating a reduced authorization framework for use in embedded builds.
Diffstat (limited to 'src/mongo/base/shim.h')
-rw-r--r--src/mongo/base/shim.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/base/shim.h b/src/mongo/base/shim.h
index 49a21dd81a4..025c6a2a65c 100644
--- a/src/mongo/base/shim.h
+++ b/src/mongo/base/shim.h
@@ -146,7 +146,7 @@ const bool checkShimsViaTUHook = false;
struct LibTUHookTypeBase { \
LibTUHookTypeBase(); \
}; \
- template <bool required = mongo::checkShimsViaTUHook> \
+ template <bool required = true> \
struct LibTUHookType : LibTUHookTypeBase {}; \
using LibTUHook = LibTUHookType<>; \
struct ImplTUHookTypeBase { \
@@ -166,7 +166,7 @@ const bool checkShimsViaTUHook = false;
return this; \
} \
MongoShimImplGuts* lib(const LibTUHook* const) { \
- MONGO_SHIM_TU_HOOK(LibTUHook); \
+ LibTUHook{}; \
return this; \
} \
MongoShimImplGuts* impl(const ImplTUHook* const) { \