summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-01 17:32:33 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-02 12:05:59 -0400
commit754f482c204160bf0c74373b64ba3406604f0731 (patch)
tree479fe9e9afd65bf78ae30b73d00649d41d67389b /src/mongo/db/curop.cpp
parent908d0cedf82b50c93932916685c4f8fa4748cc6f (diff)
downloadmongo-754f482c204160bf0c74373b64ba3406604f0731.tar.gz
SERVER-14995 Move _killPending from CurOp to OperationContext.
Also, limit the lifetime of OperationContext in MongoD so that it goes out of scope before sending a reply to the client. This is necessary so that operations do not appear in the currentOp command result after the server sends a response to the client.
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 4c41b5bd365..f896b1524b3 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -165,7 +165,6 @@ namespace mongo {
_maxTimeTracker.reset();
_message = "";
_progressMeter.finished();
- _killPending.store(0);
_numYields = 0;
_expectedLatencyMs = 0;
_op = 0;
@@ -268,16 +267,9 @@ namespace mongo {
}
}
- if( killPending() )
- builder->append("killPending", true);
-
builder->append( "numYields" , _numYields );
}
- void CurOp::kill() {
- _killPending.store(1);
- }
-
void CurOp::setMaxTimeMicros(uint64_t maxTimeMicros) {
_maxTimeMicros = maxTimeMicros;