diff options
Diffstat (limited to 'src/mongo/client/scoped_db_conn_test.cpp')
-rw-r--r-- | src/mongo/client/scoped_db_conn_test.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/mongo/client/scoped_db_conn_test.cpp b/src/mongo/client/scoped_db_conn_test.cpp index 342342895d8..122aff1da85 100644 --- a/src/mongo/client/scoped_db_conn_test.cpp +++ b/src/mongo/client/scoped_db_conn_test.cpp @@ -66,38 +66,10 @@ using std::vector; class Client; class OperationContext; -namespace { - -stdx::mutex shutDownMutex; -bool shuttingDown = false; - -} // namespace - -// Symbols defined to build the binary correctly. -bool inShutdown() { - stdx::lock_guard<stdx::mutex> sl(shutDownMutex); - return shuttingDown; -} - -void signalShutdown() {} - DBClientBase* createDirectClient(OperationContext* txn) { return NULL; } -void dbexit(ExitCode rc, const char* why) { - { - stdx::lock_guard<stdx::mutex> sl(shutDownMutex); - shuttingDown = true; - } - - quickExit(rc); -} - -void exitCleanly(ExitCode rc) { - dbexit(rc, ""); -} - namespace { const string TARGET_HOST = "localhost:27017"; @@ -169,11 +141,6 @@ public: MessageServer::Options options; options.port = _port; - { - stdx::lock_guard<stdx::mutex> sl(shutDownMutex); - shuttingDown = false; - } - _server.reset(createServer(options, std::move(messsageHandler))); _serverThread = stdx::thread(runServer, _server.get()); } @@ -186,11 +153,6 @@ public: return; } - { - stdx::lock_guard<stdx::mutex> sl(shutDownMutex); - shuttingDown = true; - } - ListeningSockets::get()->closeAll(); _serverThread.join(); |