diff options
author | Richard Hausman <richard.hausman@mongodb.com> | 2022-08-19 17:55:53 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-19 19:31:00 +0000 |
commit | d3ea0605477301d4055034dde5153267a61eb5ab (patch) | |
tree | bc1fcfa4b804ce2b713ed69f3bbc13eab897a515 /src/mongo/dbtests/querytests.cpp | |
parent | 9a07ecfd7e91d330fc4cf8ea8b08e2f2e75ec04e (diff) | |
download | mongo-d3ea0605477301d4055034dde5153267a61eb5ab.tar.gz |
SERVER-67880 : Check BSON column is decompressible in the validate command.
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r-- | src/mongo/dbtests/querytests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index 1e5407d62b5..677764e3d3b 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -30,6 +30,7 @@ #include <boost/optional.hpp> #include <iostream> +#include "mongo/bson/bson_validate.h" #include "mongo/client/dbclient_cursor.h" #include "mongo/db/catalog/collection_write_path.h" #include "mongo/db/catalog/multi_index_block.h" @@ -1204,7 +1205,7 @@ public: std::unique_ptr<DBClientCursor> cursor = _client.find(std::move(findRequest)); while (cursor->more()) { BSONObj o = cursor->next(); - verify(o.valid()); + verify(validateBSON(o).isOK()); } } void run() { |