diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-06-06 10:42:32 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-06-10 14:02:56 -0400 |
commit | 8ff5aecd2c0c606feefa39f0f8bd5e84c2c57bba (patch) | |
tree | f5a8d429fa859da84142c5be30a29fc589cf328c /src/mongo/db/lasterror.h | |
parent | 713734e41357a96592ace944ad71f5982211f31b (diff) | |
download | mongo-8ff5aecd2c0c606feefa39f0f8bd5e84c2c57bba.tar.gz |
Include what you use in lasterror.h
Diffstat (limited to 'src/mongo/db/lasterror.h')
-rw-r--r-- | src/mongo/db/lasterror.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/lasterror.h b/src/mongo/db/lasterror.h index afcb2a1bb52..65c1a723be1 100644 --- a/src/mongo/db/lasterror.h +++ b/src/mongo/db/lasterror.h @@ -17,7 +17,11 @@ #pragma once +#include <boost/thread/tss.hpp> +#include <string> + #include "mongo/bson/oid.h" +#include "mongo/util/log.h" namespace mongo { class BSONObjBuilder; @@ -25,7 +29,7 @@ namespace mongo { struct LastError { int code; - string msg; + std::string msg; enum UpdatedExistingType { NotUpdate, True, False } updatedExisting; OID upsertedId; OID writebackId; // this shouldn't get reset so that old GLE are handled @@ -34,7 +38,7 @@ namespace mongo { int nPrev; bool valid; bool disabled; - void writeback( OID& oid ) { + void writeback(const OID& oid) { reset( true ); writebackId = oid; writebackSince = 0; |