diff options
author | Benety Goh <benety@mongodb.com> | 2018-04-04 21:42:26 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-04-04 21:42:26 -0400 |
commit | 80f409d1311eb8d20251d17be474aff382538b84 (patch) | |
tree | a8134ca8928240b84414f8faf75c7af06119915b /src/mongo/db/pipeline/value.cpp | |
parent | c3badcbbcf069f428a765ba5937106d1da814076 (diff) | |
download | mongo-80f409d1311eb8d20251d17be474aff382538b84.tar.gz |
SERVER-34307 replace invariant(false) with MONGO_UNREACHABLE
Diffstat (limited to 'src/mongo/db/pipeline/value.cpp')
-rw-r--r-- | src/mongo/db/pipeline/value.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/value.cpp b/src/mongo/db/pipeline/value.cpp index 5adbfaff580..e5532e6fb49 100644 --- a/src/mongo/db/pipeline/value.cpp +++ b/src/mongo/db/pipeline/value.cpp @@ -693,7 +693,7 @@ int Value::compare(const Value& rL, return compareDecimalToDouble(rL._storage.getDecimal(), rR._storage.doubleValue); default: - invariant(false); + MONGO_UNREACHABLE; } } @@ -710,7 +710,7 @@ int Value::compare(const Value& rL, case NumberDecimal: return compareIntToDecimal(rL._storage.intValue, rR._storage.getDecimal()); default: - invariant(false); + MONGO_UNREACHABLE; } } @@ -725,7 +725,7 @@ int Value::compare(const Value& rL, case NumberDecimal: return compareLongToDecimal(rL._storage.longValue, rR._storage.getDecimal()); default: - invariant(false); + MONGO_UNREACHABLE; } } @@ -741,7 +741,7 @@ int Value::compare(const Value& rL, return compareDoubleToDecimal(rL._storage.doubleValue, rR._storage.getDecimal()); default: - invariant(false); + MONGO_UNREACHABLE; } } |