diff options
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/mock/mock_dbclient_cursor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/dbtests/mock/mock_dbclient_cursor.h b/src/mongo/dbtests/mock/mock_dbclient_cursor.h index 454a2a61288..9a030a0ca41 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_cursor.h +++ b/src/mongo/dbtests/mock/mock_dbclient_cursor.h @@ -32,6 +32,11 @@ namespace mongo { const mongo::BSONArray& mockCollection); bool more(); + + /** + * Note: has the same contract as DBClientCursor - returned BSONObj will + * become invalid when this cursor is destroyed. + */ mongo::BSONObj next(); private: |