summaryrefslogtreecommitdiff
path: root/src/mongo/bson
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-42067 Ensure key Ordering offset does not exceed the maximum number ↵Louis Williams2019-08-141-0/+3
| | | | | | of compound index keys (cherry picked from commit fe4ca9897f8b8e91dc82fc15250e287da68cc83f)
* SERVER-42657 Make DataType<BSONObj> noexcept safer4.2.0-rc8Jonathan Reams2019-08-072-4/+11
| | | | (cherry picked from commit d7455e67f5b002de110f7972603906888aff66b8)
* Apply formatting per `clang-format-7.0.1`clang-format-7.0.12019-07-2621-118/+79
|
* SERVER-17311 Ensure BSONObj, RecordData, and SharedBuffer are noexcept moveableAlya Berciu2019-06-031-0/+4
|
* SERVER-40802 stop using boost::container::flat_setMathias Stearn2019-05-012-34/+0
|
* SERVER-40802 move some expensive and commonly instantiated functions out of lineMathias Stearn2019-05-013-30/+47
|
* SERVER-40813 remove all -inl.h filesBilly Donahue2019-04-305-252/+386
|
* SERVER-40253 Implement count command in IDLTed Tuckman2019-04-253-0/+205
|
* SERVER-40476 merge contents of utils/stringutils into utils/str.Billy Donahue2019-04-112-9/+7
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-096-37/+31
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* SERVER-40476 remove mongoutils::str::equalsBilly Donahue2019-04-083-15/+22
|
* SERVER-40356 Make ConstDataRange constructable from any byte-like typeJonathan Reams2019-04-065-10/+10
|
* SERVER-38623 Make safeNumberLongForHash consistent on all platformsJustin Seyster2019-04-032-19/+18
| | | | | | | | | | | | | | | Previously, the hash function for double values relied on undefined behavior when computing the hash for 2^63, meaning that it could give different results on different platforms. Almost all platforms we support returned -2^63 as the result of safeNumberLongForHash when the input was 2^63, so this patch makes that the official result. Now, safeNumberLongForHash will explicitly convert 2^63 to -2^63 on _all_ platforms without invoking any undefined behavior. Note that this does not change our guidance that using a hashed index for a field containing a floating point value greater than 2^53 is unsupported: https://docs.mongodb.com/manual/core/index-hashed/#considerations
* SERVER-36024 Relax overzealous dassert in mutable bsonAndrew Morrow2019-03-292-29/+46
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-287-12/+16
| | | | | | | | | | | produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done
* Revert "SERVER-36243 Use sized deallocation."Andrew Morrow2019-03-181-1/+1
| | | | This reverts commit afe082642124dbda2367cb51c3d748873df9bf7b.
* SERVER-36243 Use sized deallocation.Henrik Edin2019-03-121-1/+1
| | | | | Added mongoFree to be used when allocating memory with mongoMalloc. It has an overload taking size utilizing tc_free_sized if built with tcmalloc.
* SERVER-37092 Remove old server parameter APISara Golemon2019-03-031-1/+0
|
* SERVER-39863 remove std using namespace directivesBilly Donahue2019-02-281-6/+4
|
* SERVER-38984 Validate unique User ID on UserCache hitSara Golemon2019-02-141-2/+8
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-1366-97/+6
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-38176 Compile with /permissive- on MSVC to make the compiler strictly ↵Henrik Edin2019-02-011-1/+1
| | | | standard conformant.
* SERVER-38932 add BinData sub-type for encryptionIsabella Siu2019-01-222-0/+4
|
* SERVER-38577 Implement internal match expression which matches a particular ↵vrachev2019-01-142-0/+20
| | | | BinData subtype
* SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue2019-01-111-2/+2
| | | | | | | | Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
* SERVER-36644 remove AtomicWord typedefsBilly Donahue2019-01-071-2/+3
|
* rewrite BSONElement::coerce as overloads rather than undefined templateBilly Donahue2018-12-272-18/+16
|
* SERVER-38249 Implement stdx unordered_map and unordered_set as absl node ↵Henrik Edin2018-12-202-31/+0
| | | | | | | | | | hash map/set. Remove stdx::unordered_multimap and multiset. Custom hashers to stdx::unordered_map are not trusted by default, we will rehash the produced hash with absl again to ensure we have a good hash function.
* SERVER-38668 Use ordered_unique_range_t when creating flat_set from sorted ↵Henrik Edin2018-12-192-0/+17
| | | | vector to get fast path in boost.
* SERVER-37183 Safer bound for safeNumberLong()Justin Seyster2018-12-073-1/+125
|
* SERVER-38160 Allow compilation with Visual Studio 2017.Henrik Edin2018-11-271-0/+8
| | | | | | Take SCons MSCommon from SCons 3.0.1 Fix missing <intrin.h> includes Suppress constant arithmetic warnings in unit tests
* SERVER-37124 Disambiguate DuplicateKey error and return keyPattern details ↵James Wahlin2018-11-162-5/+6
| | | | in errorInfo object
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-2266-850/+1016
|
* SERVER-36272 Catch error in parsing values after % in URIsShreyas Kalyan2018-10-122-4/+5
|
* SERVER-36517 Allow wildcard indexes to provide DISTINCT_SCANBernard Gorman2018-10-111-1/+3
|
* SERVER-36931 Handle returnKey option for $** indexesyarai2018-09-212-14/+0
|
* SERVER-36606: Allow construction of large BSON objectsSpencer Jackson2018-09-177-13/+150
|
* SERVER-36576 Restore ostream formatters after changeMark Benvenuto2018-09-061-2/+17
|
* SERVER-36475 Reduce use of stringstream in BSONObj.jsonStringKashish Garg2018-08-084-8/+35
|
* SERVER-36108 speed up BSONArrayBuilder by counting in decimalGeert Bosch2018-08-053-36/+96
| | | | Now removed constexpr that broke Windows build.
* Revert "SERVER-36108 speed up BSONArrayBuilder by counting in decimal"Geert Bosch2018-08-033-96/+36
| | | | This reverts commit ce9968b484b95fe3f08ffe1d15791e8fadc9e854.
* SERVER-36108 speed up BSONArrayBuilder by counting in decimalGeert Bosch2018-08-033-36/+96
|
* SERVER-35896: Support 'replaceDocuments' mode in $outNick Zolnierz2018-08-022-16/+17
|
* SERVER-35847 Remove eval command and remove/update related tests/helpersSara Golemon2018-06-292-2/+1
|
* Revert "SERVER-34975 Treat an OID-embedded timestamp as unsigned."Justin Seyster2018-06-283-6/+11
| | | | This reverts commit a9deb701a7533b566a2eb703aff70bf2f03b147c.
* SERVER-34798 Remove ServiceContext subclasses and use new ServiceContext in ↵Andy Schwerin2018-06-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | every unit test. This patch does several loosely related and surprisingly hard to separate things. 1.) Make the ServiceContext class final 2.) Create a mechanism, called ConstructorActions, for running methods on ServiceContexts immediately after they're built and immediately before they're destroyed. 3.) Introduce / improve test fixture base classes for tests, giving them fresh ServiceContext instances for each test case. There is one fixture for tests that need a storage engine and another for those that do not. 4.) Make several remaining global variables SC decorations in support of (3) 5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the new constructor-actions system, which is needed for (3.) 6.) Fix up tests to use the fixtures from (3) and fix tests that silently used different service contexts in together in a technically illegal fashion that now breaks. 7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts, simplifying the fixtures in (3).
* SERVER-35135 Redact command payload when auditing edge case eventsBilly Donahue2018-06-061-0/+1
| | | | Add missing #include for mongo/bson/util/builder.h
* SERVER-34975 Treat an OID-embedded timestamp as unsigned.Justin Seyster2018-05-223-11/+6
|
* SERVER-34730 Delete NetworkInterfaceASIOJonathan Reams2018-05-162-3/+4
|
* SERVER-34805 Refactor the network libraries and move messages types to ↵Andrew Morrow2018-05-051-1/+1
| | | | rpc/protocol