diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_change_stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream.h b/src/mongo/db/pipeline/document_source_change_stream.h index 23ac499c804..17f891c7dc7 100644 --- a/src/mongo/db/pipeline/document_source_change_stream.h +++ b/src/mongo/db/pipeline/document_source_change_stream.h @@ -102,6 +102,9 @@ public: // sharded, and anyway "_id". Empty until the first oplog entry with a uuid is encountered. // Needed for transforming 'insert' oplog entries. std::vector<FieldPath> _documentKeyFields; + + // Set to true if the collection is found to be sharded while retrieving _documentKeyFields. + bool _documentKeyFieldsSharded = false; }; // The sort pattern used to merge results from multiple change streams on a mongos. |