diff options
author | George Wangensteen <george.wangensteen@10gen.com> | 2019-07-25 12:06:35 -0400 |
---|---|---|
committer | George Wangensteen <george.wangensteen@10gen.com> | 2019-08-09 16:26:11 -0400 |
commit | a8af39c769926ee06dc6087cbeca8e3da5b943de (patch) | |
tree | 84347603a7ff516515d938a1da92e8a8aad60ccd /src/mongo/s/query/cluster_client_cursor_mock.h | |
parent | 781677e5b9161f18d5dbd8b38e598b12dbd25b5d (diff) | |
download | mongo-a8af39c769926ee06dc6087cbeca8e3da5b943de.tar.gz |
SERVER-31138 ensure releaseCursor returns a RAII safe type
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor_mock.h')
-rw-r--r-- | src/mongo/s/query/cluster_client_cursor_mock.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_mock.h b/src/mongo/s/query/cluster_client_cursor_mock.h index 783a038eea1..065a9a9211a 100644 --- a/src/mongo/s/query/cluster_client_cursor_mock.h +++ b/src/mongo/s/query/cluster_client_cursor_mock.h @@ -101,13 +101,10 @@ public: void incNBatches() final; /** - * Returns true unless marked as having non-exhausted remote cursors via - * markRemotesNotExhausted(). + * Returns false unless the mock cursor has been fully iterated. */ bool remotesExhausted() final; - void markRemotesNotExhausted(); - /** * Queues an error response. */ @@ -115,7 +112,6 @@ public: private: bool _killed = false; - bool _exhausted = false; std::queue<StatusWith<ClusterQueryResult>> _resultsQueue; std::function<void(void)> _killCallback; @@ -128,7 +124,7 @@ private: // Number of returned documents. long long _numReturnedSoFar = 0; - bool _remotesExhausted = true; + bool _remotesExhausted = false; boost::optional<LogicalSessionId> _lsid; |