diff options
author | Daniel Solnik <dan.solnik@Daniels-MacBook-Pro-3.local> | 2019-06-07 13:04:20 -0400 |
---|---|---|
committer | Daniel Solnik <dansolnik@gmail.com> | 2019-06-26 14:06:12 -0400 |
commit | f16da96fdbb9a151cbc9890802c53370298b4fd2 (patch) | |
tree | 265a51f227be275dc2c5bf7449426fa85782cfa3 /src/mongo/db/storage/bson_collection_catalog_entry.cpp | |
parent | d40952211bc71634435be37855855243154a3571 (diff) | |
download | mongo-f16da96fdbb9a151cbc9890802c53370298b4fd2.tar.gz |
SERVER-38796 Refactor CollectionOptions::parse to be static
Diffstat (limited to 'src/mongo/db/storage/bson_collection_catalog_entry.cpp')
-rw-r--r-- | src/mongo/db/storage/bson_collection_catalog_entry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/bson_collection_catalog_entry.cpp b/src/mongo/db/storage/bson_collection_catalog_entry.cpp index 8b74fed91b4..d691779de5e 100644 --- a/src/mongo/db/storage/bson_collection_catalog_entry.cpp +++ b/src/mongo/db/storage/bson_collection_catalog_entry.cpp @@ -216,8 +216,8 @@ void BSONCollectionCatalogEntry::MetaData::parse(const BSONObj& obj) { ns = obj["ns"].valuestrsafe(); if (obj["options"].isABSONObj()) { - options.parse(obj["options"].Obj(), CollectionOptions::parseForStorage) - .transitional_ignore(); + options = uassertStatusOK( + CollectionOptions::parse(obj["options"].Obj(), CollectionOptions::parseForStorage)); } BSONElement indexList = obj["indexes"]; |