| Age | Commit message (Collapse) | Author |
|
GitOrigin-RevId: 49e48a06e26c141d3375f597c5b8b5631861b8bc
|
|
OperationContext (#20690)"
This reverts commit da54ce71c900d633f84af7dcec43bc5aeb2bd114.
GitOrigin-RevId: a4582b0839062f4464a3c71bad923ab85d32bf85
|
|
GitOrigin-RevId: da54ce71c900d633f84af7dcec43bc5aeb2bd114
|
|
|
|
|
|
- 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
|
|
|
|
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
|
|
|
of startup options. Also reduce dependencies on embedded.
|