summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonelement.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue2022-05-061-1/+3
|
* SERVER-55204 Error on fallthrough unless the attribute is usedAndrew Morrow2022-04-181-0/+1
|
* SERVER-62980 Revert simplification of compareElementStringValues for perfMatt Kneiser2022-01-261-1/+9
|
* SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser2022-01-131-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix: Change return type of BSONObj::getStringField to include size (StringData vs. char*). A char* only contains the data with an ending NULL termination. Whereas a StringData contains data + size so caller knows how to interpret data if there are embedded NULLs. - Cleanup: Remove old tag - CachedSizeTag - that disambiguated BSONElement ctors. A dangling reference to 'maxLen' in a comment led me to this historical issue. $ git log -S'maxLen' -- src/mongo/bson/bsonelement.h commit 0d38ef5 Author: Mathias Stearn mathias@10gen.com Date: Tue Dec 19 14:23:08 2017 -0500 SERVER-32302 Compute BSONElement sizes eagerly - Test: Add tests for NULL bytes being returned by getStringField - $ ninja -j400 +bson_obj_test - Cleanup: Move BSONElement::valuestr() from public to private - Cleanup: Remove BSONElement::valuestrsafe() - Cleanup: Remove all external callers of valuestr/valuestrsafe and cleanup their callsites with better alternatives. - Cleanup: Make multi-line BSONElement & BSONObj public API comments conform to style guidelines - Nit: Fix spelling in a comment
* SERVER-61566 Fix and extract coercion to 32-bit int logic in expression parsingRui Liu2021-11-301-1/+17
|
* SERVER-61124 Remove BSONElement::compareDan Larkin-York2021-11-021-102/+0
|
* SERVER-56717 Add ComparisonRulesSet as a parameterAlison Lu2021-06-251-7/+17
|
* SERVER-56717 Update naming and comment, simplify comparisonsAlison Lu2021-06-251-0/+92
|
* SERVER-51856 Add Visual Studio Natvis debugger visualizers for BSONObj and ↵Henrik Edin2020-10-281-0/+21
| | | | BSONElement
* SERVER-51719 BSONElement::toString must handle len < 0CLOUDP-69887Billy Donahue2020-10-191-1/+1
|
* SERVER-43909 clarify and repair util/hex.h APIBilly Donahue2020-09-151-13/+9
| | | | | | | - hexblob namespace - Throwy hexblob::decode (nee fromHex) - StringData overloads of hex codec ops - add unsignedHex<T> and zeroPaddedHex<T>
* SERVER-47208 make tojson(BSONObj) match JavaScript JSON.stringify.Billy Donahue2020-05-081-4/+8
|
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-261-1/+1
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-46434 turn MemberConfig into IDLJudah Schvimer2020-03-201-0/+4
|
* SERVER-46406 Perf improvements in the logger.Henrik Edin2020-03-131-1/+1
| | | | Use fmt::compile and fmt::format_int when possible.
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-1/+0
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45869 automatically converted structured loggingGabriel Russell2020-02-131-1/+2
|
* SERVER-46017 Add truncation support for JSON formatterHenrik Edin2020-02-111-40/+93
| | | | Truncated objects will report truncation status in 'truncated' and 'size' sub objects.
* SERVER-44623 Rework JSON generation from BSONObjHenrik Edin2019-12-181-224/+93
| | | | | | | - Extended Canonical/Relaxed 2.0.0 is supported - Using libfmt instead of stringstream as internal buffer - JSON parser can parse Extended Canonical/Relaxed and Strict formats - Removed TenGen format
* SERVER-45057 make base64 encode/decode 22x/15x fasterBilly Donahue2019-12-181-1/+1
|
* SERVER-44102 Optimize bsonelement constructorGeert Bosch2019-10-291-34/+43
|
* SERVER-43775 BSON errors should log memory contextLouis Williams2019-10-221-3/+40
| | | | | When an invalid type is detected in a BSONElement, print the address and surrounding memory in an attempt to provide context around the error.
* Revert "SERVER-41994 correctly create and show type 2 binary elements"Gabriel Russell2019-10-151-5/+1
| | | | This reverts commit 3f6ba750fc8374968c3c06e31c67ac2839e9a736.
* SERVER-41994 correctly create and show type 2 binary elementsGabriel Russell2019-09-101-1/+5
|
* SERVER-41961 Remove the `NOINLINE_DECL` and replace with ↵ADAM David Alan Martin2019-08-151-2/+3
| | | | | | `MONGO_COMPILER_NOINLINE` Also removed the `PACKED_DECL`, since it isn't used.
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-7/+7
|
* SERVER-7143 replace standard library number parsing with custom NumberParserNathan Brown2019-06-271-2/+6
|
* SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis2019-06-141-1/+1
|
* SERVER-8544 Disable having duplicate regex options in JSON parsingNathan Brown2019-06-041-0/+1
|
* SERVER-40253 Implement count command in IDLTed Tuckman2019-04-251-0/+78
|
* SERVER-40476 merge contents of utils/stringutils into utils/str.Billy Donahue2019-04-111-7/+6
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-091-2/+1
| | | | | | Rename utils/mongoutils/str.h => utils/str.h Rename namespace mongoutils::str => str Rename mongo::strcasecmp => str::caseInsensitiveCompare.
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* 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
* rewrite BSONElement::coerce as overloads rather than undefined templateBilly Donahue2018-12-271-15/+8
|
* SERVER-37183 Safer bound for safeNumberLong()Justin Seyster2018-12-071-0/+3
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-9/+10
|
* SERVER-36606: Allow construction of large BSON objectsSpencer Jackson2018-09-171-2/+2
|
* SERVER-36576 Restore ostream formatters after changeMark Benvenuto2018-09-061-2/+17
|
* SERVER-36475 Reduce use of stringstream in BSONObj.jsonStringKashish Garg2018-08-081-3/+10
|
* SERVER-34307 replace invariant(false) with MONGO_UNREACHABLEBenety Goh2018-04-041-4/+4
|
* SERVER-32302 Use a table to compute the size of each BSONElementMathias Stearn2018-01-041-56/+69
|
* SERVER-32302 Compute BSONElement sizes eagerlyMathias Stearn2018-01-041-96/+2
|
* SERVER-27814 Prints Timestamp consistently, changes toString(), and removes ↵Pavithra Vetriselvan2017-11-161-3/+6
| | | | toStringLong()
* SERVER-31026 Properly format UUIDs in BSONElement::toStringGeert Bosch2017-10-191-10/+26
|
* SERVER-30176: Extend the JSON Schema parser to handle logical restriction ↵Nick Zolnierz2017-09-191-165/+161
| | | | keywords (enum only)
* SERVER-29814 Move BSONObj::MatchType/BSONElement::getGtLtOp() to matcherJames Wahlin2017-07-211-50/+0
|
* SERVER-29583: Create $_internalSchemaMinProperties and ↵Anne Lim2017-07-201-2/+0
| | | | $_internalSchemaMaxProperties MatchExpressions
* SERVER-29583: Create $_internalSchemaMinProperties and ↵Anne Lim2017-07-191-0/+2
| | | | $_internalSchemaMaxProperties MatchExpressions
* SERVER-29581 Create $_internalSchemaMinLength and $_internalSchemaMaxLength ↵Natalia Jacobowitz2017-07-141-0/+2
| | | | MatchExpressions