diff options
author | Michael Hudson-Doyle <michael.hudson@linaro.org> | 2014-01-23 11:21:50 +1300 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-05-20 09:44:09 -0400 |
commit | 2fdfb48d51a31dedb28d34bde6c3a02c22ced969 (patch) | |
tree | 2343fbf4eae825df2e022d1f15a5b959e6b4ae54 | |
parent | 7b21a4cc18e7bf6c5da8c7d0af059dbea3418285 (diff) | |
download | mongo-2fdfb48d51a31dedb28d34bde6c3a02c22ced969.tar.gz |
SERVER-12461 Use larger values to test for too large $position arguments.
The previous values were integers that were just 3 away from the largest
possible 64-bit integer, were parsed as the same float as the largest possible
integer, and so were accepted. This changes them to be much much larger.
Signed-off-by: Benety Goh <benety@mongodb.com>
-rw-r--r-- | src/mongo/db/ops/modifier_push_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/modifier_push_test.cpp b/src/mongo/db/ops/modifier_push_test.cpp index 88811026205..79b8bbaf6d2 100644 --- a/src/mongo/db/ops/modifier_push_test.cpp +++ b/src/mongo/db/ops/modifier_push_test.cpp @@ -1293,8 +1293,8 @@ namespace { "{$push: {a: { $each: [1], $position:3.000000000001}}}", "{$push: {a: { $each: [1], $position:1.2}}}", "{$push: {a: { $each: [1], $position:-1.2}}}", - "{$push: {a: { $each: [1], $position:9223372036854775810}}}", - "{$push: {a: { $each: [1], $position:-9223372036854775810}}}", + "{$push: {a: { $each: [1], $position:9.0e19}}}", + "{$push: {a: { $each: [1], $position:-9.0e19}}}", NULL, }; |