diff options
Diffstat (limited to 'src/mongo/db/scanandorder.h')
-rw-r--r-- | src/mongo/db/scanandorder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/scanandorder.h b/src/mongo/db/scanandorder.h index 54775d770d5..1ff0eac25a5 100644 --- a/src/mongo/db/scanandorder.h +++ b/src/mongo/db/scanandorder.h @@ -85,6 +85,7 @@ namespace mongo { } int size() const { return _best.size(); } + int nout() const { return (int)_best.size() > _startFrom ? _best.size() - _startFrom : 0; } /** * @throw ScanAndOrderMemoryLimitExceededAssertionCode if adding would grow memory usage |