-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Write Ops
-
Minor Change
-
ALL
-
-
Query 11 (03/14/16)
The problematic code is here:
However, the entire validation block looks suspect and should probably be refactored.
(/home/andrew/Documents/10gen/dev/src/mongodb/build/optdebug/mongo/db/ops/modifier_push_test+0x5c5561): runtime error: value 9e+19 is outside the range of representable values of type 'long' #0 0x6ba3ad in mongo::ModifierPush::init(mongo::BSONElement const&, mongo::ModifierInterface::Options const&, bool*) /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/db/ops/modifier_push.cpp:322:46 #1 0x5cdfe1 in (anonymous namespace)::UnitTest__ToPosition__BadInputs::_doTest() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/db/ops/modifier_push_test.cpp:1292:9 #2 0x6e49c8 in mongo::unittest::Test::run() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:147:9 #3 0x5cdccf in void mongo::unittest::Suite::runTestObject<(anonymous namespace)::UnitTest__ToPosition__BadInputs>() /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.h:405:9 #4 0x6e615d in mongo::unittest::TestHolder::run() const /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.h:257:9 #5 0x6e615d in mongo::unittest::Suite::run(std::string const&, int) /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:263 #6 0x6e7627 in mongo::unittest::Suite::run(std::vector<std::string, std::allocator<std::string> > const&, std::string const&, int) /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest.cpp:321:27 #7 0x6ecd47 in main /home/andrew/Documents/10gen/dev/src/mongodb/src/mongo/unittest/unittest_main.cpp:40:12 #8 0x7f7c49d6ba3f in __libc_start_main /build/buildd/glibc-2.21/csu/libc-start.c:289 #9 0x5af0c8 in _start (/home/andrew/Documents/10gen/dev/src/mongodb/build/optdebug/mongo/db/ops/modifier_push_test+0x5af0c8)