diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2017-07-25 22:38:33 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2017-07-25 22:38:33 -0400 |
commit | cc57ef2dccf14d1e287b7d4f71bb0ee62d23d2eb (patch) | |
tree | 752b50624a1012ece727770de0d3915756caa0a7 /src/mongo/util | |
parent | d013a288a1c6ec22133fbf92a6fad9422893fb9c (diff) | |
download | mongo-cc57ef2dccf14d1e287b7d4f71bb0ee62d23d2eb.tar.gz |
SERVER-30307 UUID::parse should uassert instead of calling invariant
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/uuid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/uuid.cpp b/src/mongo/util/uuid.cpp index fdd0798abb1..5e5b133336a 100644 --- a/src/mongo/util/uuid.cpp +++ b/src/mongo/util/uuid.cpp @@ -83,7 +83,7 @@ StatusWith<UUID> UUID::parse(const std::string& s) { UUID UUID::parse(const BSONObj& obj) { auto res = parse(obj.getField("uuid")); - invariant(res.isOK()); + uassert(40566, res.getStatus().reason(), res.isOK()); return res.getValue(); } |