diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 14:40:56 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-07 11:28:48 -0400 |
commit | 7dc9a83e8be3446551297e746dad4f6d74b7dca2 (patch) | |
tree | 77d5cbfc18d91d285ff3924317267902095a9e95 /src/mongo/s/request.cpp | |
parent | 5a2af2004609faa786f3fa16bb7b2d35015bc93c (diff) | |
download | mongo-7dc9a83e8be3446551297e746dad4f6d74b7dca2.tar.gz |
SERVER-17817 Split ClusterLastErrorInfo concept out of ClientInfo type and into its own header.
With this change, ClientInfo is an empty subclass of ClientBasic, and in mongos we decorate
ClientBasic objects with information needed to do sharded last-error operations.
Diffstat (limited to 'src/mongo/s/request.cpp')
-rw-r--r-- | src/mongo/s/request.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/s/request.cpp b/src/mongo/s/request.cpp index d00197c8350..7827cc17161 100644 --- a/src/mongo/s/request.cpp +++ b/src/mongo/s/request.cpp @@ -38,6 +38,7 @@ #include "mongo/db/commands.h" #include "mongo/db/stats/counters.h" #include "mongo/s/client_info.h" +#include "mongo/s/cluster_last_error_info.h" #include "mongo/s/cursors.h" #include "mongo/s/grid.h" #include "mongo/s/strategy.h" @@ -57,7 +58,7 @@ namespace mongo { _id(_m.header().getId()), _didInit(false) { - _clientInfo->newRequest(); + ClusterLastErrorInfo::get(_clientInfo).newRequest(); } void Request::init() { @@ -71,7 +72,7 @@ namespace mongo { // Deprecated, will move to the strategy itself void Request::reset() { _m.header().setId(_id); - _clientInfo->clearRequestInfo(); + ClusterLastErrorInfo::get(_clientInfo).clearRequestInfo(); if ( !_d.messageShouldHaveNs()) { return; |