diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-06-06 15:51:00 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-06-06 15:56:34 -0400 |
commit | f0b2f294f7bc71baea52433bc24dde6f2a968ddd (patch) | |
tree | e08bf685f16bcbdab3347253e9a559fe21f05645 /src/mongo/db/curop.h | |
parent | f06fb74c75d64d7d4d4f1b8ba49b2dfba8a98b06 (diff) | |
download | mongo-f0b2f294f7bc71baea52433bc24dde6f2a968ddd.tar.gz |
add CurOp::numYields
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 1 |
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; |