diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-12-11 12:19:19 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-12-14 09:22:24 -0500 |
commit | 8cdf4e80df8fdf28a1057cb50708fab0dd5cd53b (patch) | |
tree | 18f92779c871c1a8188af0af53674f5e9ab01950 /src/mongo/db/instance.cpp | |
parent | 786f35e9a118d43b3f14b8d173cb3d9973e81477 (diff) | |
download | mongo-8cdf4e80df8fdf28a1057cb50708fab0dd5cd53b.tar.gz |
SERVER-23103 Remove remaining logic from instance.cpp
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r-- | src/mongo/db/instance.cpp | 48 |
1 files changed, 5 insertions, 43 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp index 10283a3d972..b24a86fd0ce 100644 --- a/src/mongo/db/instance.cpp +++ b/src/mongo/db/instance.cpp @@ -26,46 +26,8 @@ * it in the license file. */ -#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand - -#include "mongo/platform/basic.h" - -#include "mongo/db/instance.h" - -#include <memory> - -#include "mongo/base/init.h" -#include "mongo/db/auth/authz_manager_external_state_d.h" -#include "mongo/stdx/memory.h" -#include "mongo/util/log.h" - -namespace mongo { -using std::string; -using std::unique_ptr; - -string dbExecCommand; - -namespace { - -unique_ptr<AuthzManagerExternalState> createAuthzManagerExternalStateMongod() { - return stdx::make_unique<AuthzManagerExternalStateMongod>(); -} - -MONGO_INITIALIZER(CreateAuthorizationExternalStateFactory)(InitializerContext* context) { - AuthzManagerExternalState::create = &createAuthzManagerExternalStateMongod; - return Status::OK(); -} - -} // namespace - -// Mongod on win32 defines a value for this function. In all other executables it is NULL. -void (*reportEventToSystem)(const char* msg) = 0; - -void mongoAbort(const char* msg) { - if (reportEventToSystem) - reportEventToSystem(msg); - severe() << redact(msg); - ::abort(); -} - -} // namespace mongo +// DO NOT ADD SYMBOLS TO THIS FILE +// +// This file exists to create a library that in turn exists only to aggregate other library +// dependencies. As such, it should not export any symbols of its own, or depend directly on any +// symbols defined in other libraries. |