diff options
author | samontea <merciers.merciers@gmail.com> | 2018-05-31 13:23:16 -0400 |
---|---|---|
committer | samontea <merciers.merciers@gmail.com> | 2018-06-21 13:24:55 -0400 |
commit | d80d5ec7a75f6f32a27712ca4e904350318ce8c9 (patch) | |
tree | 5fccc9ae8d6e04df0ca1129d6278ab8bcae5645e /src/mongo/db/curop.h | |
parent | f462615fce8b26ad43c6ba1b4f9fe739c3625344 (diff) | |
download | mongo-d80d5ec7a75f6f32a27712ca4e904350318ce8c9.tar.gz |
SERVER-33870 make numYields of parent CurOps reflect child yields
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index 06bc4934842..a0d40523c84 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -460,8 +460,8 @@ public: CurOp* parent() const { return _parent; } - void yielded() { - _numYields++; + void yielded(int numYields = 1) { + _numYields += numYields; } // Should be _inlock()? /** |