summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-05-21 13:58:59 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-05-22 16:50:00 -0400
commitd6e686859c6187df791b7f61abbb9839f7e85c9a (patch)
tree16d1d4572d9d951683a75256ec89ec95bfebf7b6 /src/mongo/db/curop.h
parent765616c3dee87c963d57f8f80d68b4b06ef5f679 (diff)
downloadmongo-d6e686859c6187df791b7f61abbb9839f7e85c9a.tar.gz
SERVER-18277/SERVER-18482 Remove "_remote" field from CurOp.
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 80beedf3ab2..b3f96d66d3a 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -202,15 +202,16 @@ namespace mongo {
static CurOp* get(const OperationContext& opCtx);
explicit CurOp(Client* client);
+ CurOp(Client* client, int op);
~CurOp();
bool haveQuery() const { return _query.have(); }
BSONObj query() const { return _query.get(); }
void appendQuery( BSONObjBuilder& b , StringData name ) const { _query.append( b , name ); }
-
+
void enter(const char* ns, int dbProfileLevel);
void reset();
- void reset( const HostAndPort& remote, int op );
+ void reset(int op);
void markCommand() { _isCommand = true; }
OpDebug& debug() { return _debug; }
std::string getNS() const { return _ns.toString(); }
@@ -297,12 +298,6 @@ namespace mongo {
void reportState(BSONObjBuilder* builder);
- std::string getRemoteString( bool includePort = true ) {
- if (includePort)
- return _remote.toString();
- return _remote.host();
- }
-
ProgressMeter& setMessage(const char * msg,
std::string name = "Progress",
unsigned long long progressMeterTotal = 0,
@@ -349,7 +344,6 @@ namespace mongo {
int _dbprofile; // 0=off, 1=slow, 2=all
unsigned int _opNum;
ThreadSafeString _ns;
- HostAndPort _remote; // CAREFUL here with thread safety
CachedBSONObj<512> _query; // CachedBSONObj is thread safe
OpDebug _debug;
ThreadSafeString _message;