summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbdirectclient.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-18 11:58:07 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-28 19:09:18 -0400
commita3a02da6327b4995a75912c4fde4022b089d4947 (patch)
tree0657fbea3ec55f201754cd7a34b1a0658a5eb8a9 /src/mongo/db/dbdirectclient.h
parentc246ae62641c3559c38830f6f5f4981e0acffa0c (diff)
downloadmongo-a3a02da6327b4995a75912c4fde4022b089d4947.tar.gz
SERVER-30735 Make DBDirectClient use its own LastError
Diffstat (limited to 'src/mongo/db/dbdirectclient.h')
-rw-r--r--src/mongo/db/dbdirectclient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/dbdirectclient.h b/src/mongo/db/dbdirectclient.h
index c5d4bc78f6f..4432d775e23 100644
--- a/src/mongo/db/dbdirectclient.h
+++ b/src/mongo/db/dbdirectclient.h
@@ -30,6 +30,7 @@
#include "mongo/client/dbclientinterface.h"
#include "mongo/db/dbmessage.h"
+#include "mongo/db/lasterror.h"
#include "mongo/util/net/hostandport.h"
namespace mongo {
@@ -102,6 +103,7 @@ public:
private:
OperationContext* _opCtx;
+ LastError _lastError; // This LastError will be used for all operations on this client.
};
} // namespace mongo