diff options
author | Ian Boros <ian.boros@mongodb.com> | 2019-08-21 18:00:26 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-21 18:00:26 +0000 |
commit | d0662ae08dfff18472f5e91a3baee3687a33d7ea (patch) | |
tree | 22e5d53d18deb8179085ab64f533356bb01eb2bf /src/mongo/db/pipeline/document_value_test.cpp | |
parent | 8775c15cca254796fa558312da1aa365912a2050 (diff) | |
download | mongo-d0662ae08dfff18472f5e91a3baee3687a33d7ea.tar.gz |
SERVER-42418 Allow ExpressionMeta to parse find() meta options
Diffstat (limited to 'src/mongo/db/pipeline/document_value_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_value_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_value_test.cpp b/src/mongo/db/pipeline/document_value_test.cpp index e2910347e8f..0ae1e1fd377 100644 --- a/src/mongo/db/pipeline/document_value_test.cpp +++ b/src/mongo/db/pipeline/document_value_test.cpp @@ -746,7 +746,7 @@ TEST(MetaFields, BadSerialization) { // Signal there are 0 fields. bb.appendNum(0); // This would specify a meta field with an invalid type. - bb.appendNum(char(DocumentMetadataFields::MetaType::NUM_FIELDS) + 1); + bb.appendNum(char(DocumentMetadataFields::MetaType::kNumFields) + 1); // Signals end of input. bb.appendNum(char(0)); BufReader reader(bb.buf(), bb.len()); |