summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-25159 Default BSON validation version should depend on ↵Tess Avitabile2016-09-021-15/+15
| | | | admin.system.version
* SERVER-24508 BSONElement::ComparatorInterfaceDavid Storch2016-09-021-12/+16
|
* SERVER-24508 delete BSONObjCmpDavid Storch2016-08-231-2/+17
| | | | Instead, use BSONObj::ComparatorInterface.
* SERVER-24508 delete BSONObj::equal()David Storch2016-08-191-5/+4
| | | | | Instead, use comparator.evaluate(obj1 == obj2), where comparator is of type BSONObj::ComparatorInterface.
* SERVER-24508 BSONObj::ComparatorInterfaceDavid Storch2016-08-181-25/+25
| | | | | | | | | | | BSONObj instances should now be compared via the comparator interface's evaluate() method. This preferred over using BSONObj::woCompare() directly. If the comparison doesn't require any database semantics (e.g. there is no collation), there is a global instance of the SimpleBSONObjComparator which should be used for BSONObj comparisons. If the comparison requires special semantics, then callers must instantiate their own comparator object.
* SERVER-23114 Move functions involving dotted paths to separate library.Max Hirschhorn2016-06-031-70/+29
| | | | | | | | | | | | | | | | | | | | | | | | | The ability to specify a dotted path (e.g. "a.b") to traverse through embedded objects and array elements isn't defined in the BSON specification and so it doesn't belong in our BSON library. The following functions have been defined within a 'dotted_path_support' namespace and accept an additional BSONObj as their first argument to replace the associated method on the BSONObj class. - extractElementAtPath() is functionally equivalent to BSONObj::getFieldDotted(). - extractElementAtPathOrArrayAlongPath() is functionally equivalent to BSONObj::getFieldDottedOrArray(). - extractAllElementsAlongPath() is functionally equivalent to BSONObj::getFieldsDotted(). - extractElementsBasedOnTemplate() is functionally equivalent to BSONObj::extractFields(). - compareObjectsAccordingToSort() is functionally equivalent to BSONObj::woSortOrder().
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-140/+186
|
* SERVER-23553 Remove Decimal128::enabled; now always trueGeert Bosch2016-05-181-11/+4
|
* SERVER-19627 Add Decimal128 type support to mongo shellRaymond Jacobson2015-08-131-0/+13
|
* SERVER-19391: Remove BSONObjBuilder::appendAsNumber.David Hatch2015-07-231-30/+0
|
* SERVER-18978: Clang-Format - Fix comment word wrapping indentationMark Benvenuto2015-06-201-4/+4
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-1989/+2112
|
* SERVER-18580 Make OIDTests::FromDate deterministic.Andy Schwerin2015-05-201-8/+8
|
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-131-25/+27
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* Revert "SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-2/+1
| | | | | | | | stdx::chrono types." This reverts commit 9aac625685811873ffbc2d3e8d09531eff1ce10e. Committed in error.
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-121-1/+2
| | | | | | | | stdx::chrono types. Also introduces operators for adding stdx::chrono::duration to Date_t, subtracting two Date_ts to get Milliseconds, and remove the use of reinterpret_cast from the implementation of BSON Timestamp type.
* SERVER-17880 Rename OpTime to TimestampEric Milkie2015-04-071-2/+2
|
* SERVER-8944 Use C++11 standard library functions for double NaN and Infinity ↵Siyuan Zhou2015-02-051-4/+4
| | | | detection
* SERVER-13256 Remove pch.hAndrew Morrow2015-01-151-3/+0
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+8
|
* SERVER-16632 Encode TypeBits along with KeyStrings in WT indexesMathias Stearn2015-01-121-0/+5
| | | | | | | | | This allows covered queries to recover the original data, without collapsing cases that compare equally (such as 1 and 1.0, or 0.0 and -0.0). However, no attempt is made to preserve specific versions of NaN, they all become quiet_NaN(). This resolves this issue discussed in SERVER-16762.
* SERVER-13256 Scope iostream more narrowlyAndrew Morrow2015-01-051-0/+2
|
* SERVER-13256 Prohibit new uses of pch.hAndrew Morrow2015-01-051-0/+3
|
* Remove BSONObj::hash() and BSONObj::md5()Mathias Stearn2014-12-081-38/+11
| | | | They were unused in incorrect.
* SERVER-15707 Fix leaks in C++ unit test frameworkAndrew Morrow2014-10-271-1/+3
|
* SERVER-15592 set default log component for all cppMatt Kangas2014-10-141-0/+2
|
* SERVER-15210 SERVER-15211 remove OID undefined behavior and make it endian awareAdam Midvidy2014-09-191-19/+4
| | | | | | Closes #784 Signed-off-by: Benety Goh <benety@mongodb.com>
* SERVER-14889 wrapped all malloc/realloc calls within src/mongo with ↵Benety Goh2014-08-151-2/+3
| | | | | | mongoMalloc/mongoRealloc. if memory allocation fails, report error and exit.
* SERVER-14729 logging cleanup - removed mongo/util/log.h from headers, ↵Benety Goh2014-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de-inlining functions that use logging where applicable. de-inlined BSONElement::_asCode() de-inlined BSONObjBuilder::appendDate() de-inlined DBClientCursor::nextSafe() de-inlined IndexDescriptor::_checkOk() de-inlined LastErrorHolder::getSafe() de-inlined UpdateResult constructor de-inlined QueryPlannerCommon::reverseScans() de-inlined repl::ScopedConn::connect() de-inlined repl::_MultiCommand::run() de-inlined OplogReader::tailCheck() de-inlined repl::StateBox::change() de-inlined repl::SyncSourceFeedback::_resetConnection() de-inlined DiskLoc56Bit::operator=() de-inlined DurableInterface::~DurableInterface() de-inlined ListeningSockets::closeAll() de-inlined RelativePath::fromFullPath() and getPartition() de-inlined V8Scope::checkV8ErrorState and removed debug log message from ObjTracker destructor (v8-3.25) de-inlined V8Scope::checkV8ErrorState and removed debug log message from ObjTracker destructor removed log message from List1::orphan() - this should have no user-facing impact because List1::orphan() is used in tests only removed log message from RWLockRecursiveNongreedy::Lock() removed log message from RSBase destructor removed log.h dependency from DESTRUCTOR_GUARD macro removed mongo/util/log.h dependency from qlog.h removed mongo/util/log.h dependency from stacktrace.h removed mongo/util/log.h dependency from s2 logging header removed mongo/util/log.h dependency from chunk_diff-inl.cpp removed mongo/util/log.h from pch.h removed unused mongo/util/log.h include from inlined file sorter.cpp convert HashTable<K,V> to non-template NamespaceHashTable. De-inlined NamespaceHashTable::_find() and constructor convert isself getMyAddrs()and getallIPs() debug log to use LOG() macro assign default log component MONGO_LOG_DEFAULT_COMPONENT removed unused macros LOGATMOST and LOGSOME removed unused FLOG() macro from goodies.h
* SERVER-14592 de-inline bson and remove bson namespaceEric Milkie2014-07-171-0/+11
|
* SERVER-14482 Add add missing appendX methods to BSONArrayBuilderTyler Brock2014-07-161-16/+17
|
* SERVER-14524 move jsobj.cpp components into proper filesEric Milkie2014-07-141-0/+87
|
* SERVER-14413 box mmapv1 further, retire structure directoryHari Khalsa2014-07-111-1/+1
|
* SERVER-14482 Add ability to append RegEx into BSONArrayBuilderTyler Brock2014-07-081-1/+9
|
* SERVER-14376 Remove mongoutils::checksum, which was only called in one test.Andy Schwerin2014-06-271-10/+0
|
* SERVER-13617 don't compare pointers to 0 using >Mathias Stearn2014-05-011-1/+1
| | | | | | GCC with -Wextra gives the following message in these cases: ordered comparison of pointer with integer zero
* SERVER-12737 Clean up includes of jsobjmanipulator.hAndrew Morrow2014-02-141-1/+0
|
* remove dead codeEliot Horowitz2014-01-091-45/+0
|
* SERVER-11611 SERVER-11543: move btree code into its own directoryEliot Horowitz2013-12-301-1/+1
|
* SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen2013-12-101-0/+12
|
* SERVER-11135 fixed appendNumber(long long) and appendIntOrLL to handle ↵Benety Goh2013-10-211-2/+2
| | | | std::numeric_limits<long long>::min()
* SERVER-10251 Make OID date/time accessor test deterministicAndrew Morrow2013-09-121-16/+4
|
* Clean up #includes to conform with coding standardDan Pasette2013-07-241-9/+10
|
* Don't truncate strings at NUL byte in BSONElement::String()Mathias Stearn2013-07-241-0/+14
|
* SERVER-7557: fix okForStorageScott Hernandez2013-07-231-7/+64
|
* SERVER-10110 Fix flakiness in TimeTBuilder jsobj testAndrew Morrow2013-07-111-3/+3
| | | | | - Use the same clock source for all measured time points - Use sleep interval that necessarily exceeds integer division bounds
* SERVER-9713 Rewrite BSONObj::getFieldDotted to accept StringDataJason Rassi2013-05-201-0/+10
|
* SERVER-9538 Only update BufBuilder's len if successfully grewMathias Stearn2013-05-031-0/+22
| | | | | Otherwise BSONObj destructor will try to grow again to add EOO byte, causing a double exception and terminate() call.
* SERVER-7772 repl_startEric Milkie2013-03-111-1/+0
|
* SERVER-4948 Reinstate bson validation fuzz tests.aaron2012-12-281-42/+0
|