summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_only.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/s_only.cpp')
-rw-r--r--src/mongo/s/s_only.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index e012c9045a5..d9475872961 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -45,7 +45,6 @@
#include "mongo/rpc/metadata/tracking_metadata.h"
#include "mongo/rpc/reply_builder_interface.h"
#include "mongo/rpc/request_interface.h"
-#include "mongo/s/cluster_last_error_info.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/concurrency/thread_name.h"
#include "mongo/util/log.h"
@@ -56,14 +55,6 @@ namespace mongo {
using std::string;
using std::stringstream;
-/**
- * When this callback is run, we record a shard that we've used for useful work in an operation to
- * be read later by getLastError()
- */
-void usingAShardConnection(const std::string& addr) {
- ClusterLastErrorInfo::get(cc()).addShardHost(addr);
-}
-
// called into by the web server. For now we just translate the parameters
// to their old style equivalents.
void Command::execCommand(OperationContext* txn,