diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-17 17:52:49 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-20 14:06:16 -0400 |
commit | 033ebdf3326916fda46cd3eb39fb7402cc59bd2b (patch) | |
tree | 1af270a3a4d48fcaa58bb531ab27780e9fe557e0 /src/mongo/db/lasterror.h | |
parent | 84c4b7d15c6b98c7bb648bc60ade93b6af62b129 (diff) | |
download | mongo-033ebdf3326916fda46cd3eb39fb7402cc59bd2b.tar.gz |
SERVER-18131 Retire some unused parts of LastError.
Diffstat (limited to 'src/mongo/db/lasterror.h')
-rw-r--r-- | src/mongo/db/lasterror.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mongo/db/lasterror.h b/src/mongo/db/lasterror.h index 778a1653bb3..5b04b69a57a 100644 --- a/src/mongo/db/lasterror.h +++ b/src/mongo/db/lasterror.h @@ -52,17 +52,10 @@ namespace mongo { enum UpdatedExistingType { NotUpdate, True, False } updatedExisting; // _id field value from inserted doc, returned as kUpsertedFieldName (above) BSONObj upsertedId; - OID writebackId; // this shouldn't get reset so that old GLE are handled - int writebackSince; long long nObjects; int nPrev; bool valid; bool disabled; - void writeback(const OID& oid) { - reset( true ); - writebackId = oid; - writebackSince = 0; - } void raiseError(int _code , const char *_msg) { reset( true ); code = _code; @@ -82,7 +75,6 @@ namespace mongo { } LastError() { reset(); - writebackSince = 0; } void reset( bool _valid = false ) { code = 0; @@ -100,13 +92,6 @@ namespace mongo { */ bool appendSelf( BSONObjBuilder &b , bool blankErr = true ); - /** - * appends fields which are not "error" related - * this whole mechanism needs to be re-written - * but needs a lot of real thought - */ - void appendSelfStatus( BSONObjBuilder &b ); - struct Disabled : boost::noncopyable { Disabled( LastError * le ) { _le = le; @@ -145,15 +130,11 @@ namespace mongo { /** ok to call more than once. */ void initThread(); - int getID(); - void release(); /** when db receives a message/request, call this */ LastError * startRequest( Message& m , LastError * connectionOwned ); - void disconnect( int clientId ); - // used to disable lastError reporting while processing a killCursors message // disable causes get() to return 0. LastError *disableForCommand(); // only call once per command invocation! |