summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorYunhe (John) Wang <yunhe.wang@mongodb.com>2015-09-03 17:05:38 -0400
committerDavid Storch <david.storch@10gen.com>2015-09-04 11:24:43 -0400
commit053154edfbdaa770f5c099cb2c16a24cb5d3a7e1 (patch)
treecfd539784f5397e67ca121559166c71dc8e2bfdc /src/mongo/db/curop.h
parent769ef392ffef89e61ed0c001250cc52b04e0c8f4 (diff)
downloadmongo-053154edfbdaa770f5c099cb2c16a24cb5d3a7e1.tar.gz
SERVER-19649 don't log awaitData queries that exceed slowms while waiting
Closes #1015 Signed-off-by: David Storch <david.storch@10gen.com>
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 36e15b22e1b..841f0291208 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -447,6 +447,10 @@ public:
return _numYields;
}
+ /**
+ * Access to _expectedLatencyMs is not synchronized, so it is illegal for threads other than the
+ * one executing the operation to call getExpectedLatencyMs() and setExpectedLatencyMs().
+ */
long long getExpectedLatencyMs() const {
return _expectedLatencyMs;
}