diff options
author | Yunhe (John) Wang <yunhe.wang@mongodb.com> | 2015-09-03 17:05:38 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-09-04 11:24:43 -0400 |
commit | 053154edfbdaa770f5c099cb2c16a24cb5d3a7e1 (patch) | |
tree | cfd539784f5397e67ca121559166c71dc8e2bfdc /src/mongo/db/curop.h | |
parent | 769ef392ffef89e61ed0c001250cc52b04e0c8f4 (diff) | |
download | mongo-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.h | 4 |
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; } |