diff options
-rw-r--r-- | src/mongo/bson/bson_validate.h | 4 | ||||
-rw-r--r-- | src/mongo/bson/bsontypes.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/bson/bson_validate.h b/src/mongo/bson/bson_validate.h index 19d7cba52eb..a40d9368ed1 100644 --- a/src/mongo/bson/bson_validate.h +++ b/src/mongo/bson/bson_validate.h @@ -44,6 +44,8 @@ class Status; * this is NOT the bson size, but how far we know the buffer is valid * @param version - newest version to accept */ -Status validateBSON(const char* buf, uint64_t maxLength, BSONVersion version = BSONVersion::kLatest); +Status validateBSON(const char* buf, + uint64_t maxLength, + BSONVersion version = BSONVersion::kLatest); } // namespace mongo diff --git a/src/mongo/bson/bsontypes.h b/src/mongo/bson/bsontypes.h index 6fb3c0a2564..ebc790cd4b5 100644 --- a/src/mongo/bson/bsontypes.h +++ b/src/mongo/bson/bsontypes.h @@ -51,7 +51,7 @@ extern const BSONObj kMinBSONKey; /** determines BSON types considered valid by validate */ -enum class BSONVersion { kV1_0, kV1_1, kLatest = kV1_1 }; +enum class BSONVersion { kV1_0, kV1_1, kLatest = kV1_1 }; // Flag that determines whether we should accept decimal types in object validation, and default // to KeyString V1 indexes on non-MMAP storage engines. Set by enableBSON1_1 server parameter. |