From a7e74d56036e94c3e4ed11ceeb4cd43e95209aa5 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Sun, 15 Jan 2017 15:43:06 -0500 Subject: SERVER-27603 Rename mongo::inShutdown() to mongo::globalInShutdownDeprecated() for clarity. Calling this function is deprecated because modules that consult it cannot engage in an orderly, coordinated shutdown. Instead, such modules tend to just stop working at some point after mongo::shutdown() is invoked, without regard to whether modules that depend on them have already shut down. As such, for clarity, this patch renames the function from mongo::inShutdown() to mongo::globalInShutdownDeprecated(). This also helps disambiguate calls to this function from calls to individual components' similarly named functions. Also, remove uncalled mongo::inShutdownStrict(). --- src/mongo/db/clientcursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/clientcursor.cpp') diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp index c2f5c487d97..5dc6196b904 100644 --- a/src/mongo/db/clientcursor.cpp +++ b/src/mongo/db/clientcursor.cpp @@ -266,7 +266,7 @@ public: void run() { Client::initThread("clientcursormon"); Timer t; - while (!inShutdown()) { + while (!globalInShutdownDeprecated()) { { const ServiceContext::UniqueOperationContext txnPtr = cc().makeOperationContext(); OperationContext& txn = *txnPtr; -- cgit v1.2.1