summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_only.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-27 11:16:29 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-03-31 11:34:05 -0400
commit14ce8911246fa6a9ae238d69fac05b169a66e6d4 (patch)
treee2983fd493568b0ac54de52318f23672565f9c53 /src/mongo/s/s_only.cpp
parent8f643fd649922344027c901511b8bf4b562879bd (diff)
downloadmongo-14ce8911246fa6a9ae238d69fac05b169a66e6d4.tar.gz
SERVER-17723 setShardingState should not reinitialize config servers list
Currently we reinitialize the list after stepdown, but this is not necessary, because the config servers should never change and in addition, this causes problems with code which assumes once-only initialization.
Diffstat (limited to 'src/mongo/s/s_only.cpp')
-rw-r--r--src/mongo/s/s_only.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index 0f7dab81b72..edcb60cdffb 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -31,17 +31,13 @@
#include "mongo/platform/basic.h"
-#include "mongo/client/connpool.h"
#include "mongo/db/auth/authorization_manager.h"
#include "mongo/db/auth/authorization_manager_global.h"
#include "mongo/db/auth/authorization_session.h"
#include "mongo/db/auth/authz_session_external_state_s.h"
+#include "mongo/db/client.h"
#include "mongo/db/commands.h"
-#include "mongo/db/dbhelpers.h"
#include "mongo/s/client_info.h"
-#include "mongo/s/grid.h"
-#include "mongo/s/request.h"
-#include "mongo/s/shard.h"
#include "mongo/util/log.h"
#include "mongo/util/concurrency/thread_name.h"
@@ -51,7 +47,6 @@
*/
namespace mongo {
- using std::endl;
using std::string;
using std::stringstream;