summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-04-13 18:28:19 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-04-16 16:55:28 -0400
commit5ae0a2505ca14442ca6473b2d713be4e84958e6b (patch)
treec39ababf3c4c31502eadb3d26107c53594667017 /src/mongo/s/commands/cluster_get_last_error_cmd.cpp
parenta64b7af35ab0463276645e8d4637569c0ccdfd73 (diff)
downloadmongo-5ae0a2505ca14442ca6473b2d713be4e84958e6b.tar.gz
SERVER-17817 Remove ClientInfo class.
Diffstat (limited to 'src/mongo/s/commands/cluster_get_last_error_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_get_last_error_cmd.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/s/commands/cluster_get_last_error_cmd.cpp b/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
index db0f25f302f..5ef065d8e4e 100644
--- a/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
+++ b/src/mongo/s/commands/cluster_get_last_error_cmd.cpp
@@ -30,10 +30,10 @@
#include <vector>
+#include "mongo/db/client.h"
#include "mongo/db/commands.h"
#include "mongo/db/lasterror.h"
#include "mongo/s/client/dbclient_multi_command.h"
-#include "mongo/s/client_info.h"
#include "mongo/s/cluster_last_error_info.h"
#include "mongo/s/dbclient_shard_resolver.h"
#include "mongo/s/write_ops/batch_downconvert.h"
@@ -100,8 +100,7 @@ namespace {
// For compatibility with 2.4 sharded GLE, we always enforce the write concern
// across all shards.
- const HostOpTimeMap hostOpTimes(
- ClusterLastErrorInfo::get(ClientInfo::get()).getPrevHostOpTimes());
+ const HostOpTimeMap hostOpTimes(ClusterLastErrorInfo::get(cc()).getPrevHostOpTimes());
HostOpTimeMap resolvedHostOpTimes;
Status status(Status::OK());
@@ -133,7 +132,7 @@ namespace {
}
// Don't forget about our last hosts, reset the client info
- ClusterLastErrorInfo::get(ClientInfo::get()).disableForCommand();
+ ClusterLastErrorInfo::get(cc()).disableForCommand();
// We're now done contacting all remote servers, just report results