diff options
author | Martin Neupauer <xmaton@messengeruser.com> | 2021-02-05 11:35:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-05 19:47:31 +0000 |
commit | 4e181d6dc4c529fc624f959d0f6c3d53962f5cbe (patch) | |
tree | 3521fa3c0f5e2f685e5cde947eaefe420f33a113 /src | |
parent | 940f943367c7abfcabe3a06991d826cc47898d6f (diff) | |
download | mongo-4e181d6dc4c529fc624f959d0f6c3d53962f5cbe.tar.gz |
SERVER-54317 [SBE] MONGO_UNREACHABLE in jstests/aggregation/bugs/server6239.js
Fix a simple logical bug in VM. The date test was incorrectly executed
twice in the if-then-else chain.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/exec/sbe/vm/vm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sbe/vm/vm.cpp b/src/mongo/db/exec/sbe/vm/vm.cpp index f0cdcafe760..a8e3fc93c9c 100644 --- a/src/mongo/db/exec/sbe/vm/vm.cpp +++ b/src/mongo/db/exec/sbe/vm/vm.cpp @@ -1237,7 +1237,7 @@ std::tuple<bool, value::TypeTags, value::Value> ByteCode::builtinDoubleDoubleSum auto [own, tag, val] = getFromStack(idx); if (tag == value::TypeTags::NumberInt32) { sum.addInt(value::numericCast<int32_t>(tag, val)); - } else if (tag == value::TypeTags::NumberInt64 || tag == value::TypeTags::Date) { + } else if (tag == value::TypeTags::NumberInt64) { sum.addLong(value::numericCast<int64_t>(tag, val)); } else if (tag == value::TypeTags::NumberDouble) { sum.addDouble(value::numericCast<double>(tag, val)); |