diff options
-rw-r--r-- | src/mongo/db/pipeline/document_source_mock.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/pipeline/document_source_mock.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_mock.cpp b/src/mongo/db/pipeline/document_source_mock.cpp index ae9e0ef4f63..4567f5e2178 100644 --- a/src/mongo/db/pipeline/document_source_mock.cpp +++ b/src/mongo/db/pipeline/document_source_mock.cpp @@ -55,7 +55,7 @@ const char* DocumentSourceMock::getSourceName() const { return "mock"; } -const size_t DocumentSourceMock::size() const { +size_t DocumentSourceMock::size() const { return _queue.size(); } diff --git a/src/mongo/db/pipeline/document_source_mock.h b/src/mongo/db/pipeline/document_source_mock.h index b845df5ac92..846f2747532 100644 --- a/src/mongo/db/pipeline/document_source_mock.h +++ b/src/mongo/db/pipeline/document_source_mock.h @@ -70,7 +70,7 @@ public: const char* getSourceName() const override; - const size_t size() const; + size_t size() const; void reattachToOperationContext(OperationContext* opCtx) { isDetachedFromOpCtx = false; |