summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-06 15:51:00 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-06 15:56:34 -0400
commitf0b2f294f7bc71baea52433bc24dde6f2a968ddd (patch)
treee08bf685f16bcbdab3347253e9a559fe21f05645 /src/mongo/db/curop.h
parentf06fb74c75d64d7d4d4f1b8ba49b2dfba8a98b06 (diff)
downloadmongo-f0b2f294f7bc71baea52433bc24dde6f2a968ddd.tar.gz
add CurOp::numYields
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 809942543ec..cb6bccdb51e 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -220,6 +220,7 @@ namespace mongo {
void kill() { _killed = true; }
bool killed() const { return _killed; }
void yielded() { _numYields++; }
+ int numYields() const { return _numYields; }
void setNS(const char *ns) {
strncpy(_ns, ns, Namespace::MaxNsLen);
_ns[Namespace::MaxNsLen] = 0;