summaryrefslogtreecommitdiff
path: root/src/mongo/bson/oid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-60342 Clean up OID string handlingSara Golemon2021-10-051-3/+25
|
* SERVER-40811 make initializers throwyBilly Donahue2020-12-081-2/+1
| | | | | | | - Consolidate init-related headers (just init.h and initializer.h) - Factor out a separate DependencyGraph component - Remove MONGO_DEFAULT_PREREQUISITES, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS. - Document the role of the "default" initializer.
* SERVER-43909 clarify and repair util/hex.h APIBilly Donahue2020-09-151-7/+5
| | | | | | | - hexblob namespace - Throwy hexblob::decode (nee fromHex) - StringData overloads of hex codec ops - add unsignedHex<T> and zeroPaddedHex<T>
* SERVER-43641 upgrade random.hBilly Donahue2019-10-091-7/+6
| | | | This reverts commit a40b196bd3cecd0b66a6323f57e6f08efe0af392.
* Revert "SERVER-43641 upgrade random.h"James Wahlin2019-10-021-6/+7
| | | | This reverts commit 96da177c6ae7b7ed0f29983ad033d8a59524b0b2.
* SERVER-43641 upgrade random.hBilly Donahue2019-10-021-7/+6
| | | | | | | | | | | | | | | | | | | | | Respecify PseudoRandom and SecureRandom as template instances of a `mongo::RandomBase<Urbg>` (Urbg is a UniformRandomBitGenerator). They will only vary in which algorithm they use for their source bits, and should otherwise support the same exact operations (e.g. `nextCanonicalDouble`). Fix range and stats errors in the implementations of those RandomBase methods, and specify them in terms of the vetted `<random>` facilities. Test uniformity of nextInt32(max), which uses an inappropriate ( x % max) operation. Verify that refactor fixes this issue. Just keep a shared urandom file descriptor open. SecureRandom add fill, remove create, fix callers Obsoletes SERVER-43643 Re: SecureRandom 8kiB buffering
* SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis2019-06-141-1/+1
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-3/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-36644 remove AtomicWord typedefsBilly Donahue2019-01-071-2/+3
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+17
|
* SERVER-36272 Catch error in parsing values after % in URIsShreyas Kalyan2018-10-121-1/+1
|
* Revert "SERVER-34975 Treat an OID-embedded timestamp as unsigned."Justin Seyster2018-06-281-0/+4
| | | | This reverts commit a9deb701a7533b566a2eb703aff70bf2f03b147c.
* SERVER-34975 Treat an OID-embedded timestamp as unsigned.Justin Seyster2018-05-221-4/+0
|
* SERVER-21744 ElectionID always increases under PV0 and PV1.Siyuan Zhou2016-01-111-3/+6
| | | | Reset election id on PV upgrade and downgrade.
* SERVER-18717 compose electionId in OID format from termmatt dannenberg2015-06-261-0/+6
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-123/+120
|
* SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>Andrew Morrow2015-06-101-4/+3
|
* SERVER-13874 Make mongo::Milliseconds et al. aliases for equivalent ↵Andy Schwerin2015-05-131-1/+1
| | | | | | | | 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-1/+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/+1
| | | | | | | | 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-17629 Implemented Bounded Data View/CursorJason Carey (hanumantmk)2015-04-141-6/+6
| | | | | | | | | | | | Implements DataRange and DataRangeCursor, bounded Status returning variants of DataView and DataCursor. Implements DataType::Handler<> to allow for specialization by type. * Endian specializations * BSONObj specialization Fix for endian conversions for floats and doubles to avoid some signaling bit patterns.
* SERVER-17596 mongo::OID::asTimeT() and mongo::OID::asDateT() should be constroot2015-03-171-1/+1
| | | | | | Signed-off-by: Adam Midvidy <amidvidy@gmail.com> Closes #937
* SERVER-15210 SERVER-15211 remove OID undefined behavior and make it endian awareAdam Midvidy2014-09-191-118/+95
| | | | | | Closes #784 Signed-off-by: Benety Goh <benety@mongodb.com>
* SERVER-14934 Move static builder strings to builder source rather than oidAndrew Morrow2014-08-191-18/+0
|
* SERVER-14587 Add hash function to OID so it can be stored in an unordered_mapSpencer T Brody2014-07-171-0/+6
|
* SERVER-6018 Replace AtomicUInt with AtomicUInt32 in OIDAndrew Morrow2014-05-171-4/+4
|
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-161-9/+21
| | | | Also update generators.
* SERVER-9809 Replace getpid() with ProcessId::getCurrent() and pid_t with ↵Andy Schwerin2013-06-031-10/+3
| | | | ProcessId.
* Only create a SecureRandom when neededMathias Stearn2013-01-191-2/+2
|
* Work around MSCV by using an enum, not a constantAndrew Morrow2012-11-181-2/+0
|
* Add a static constant to OID to capture its data sizeAndrew Morrow2012-11-181-1/+5
|
* remove file local SecureRandom and use local since its short livedEliot Horowitz2012-11-131-13/+5
|
* oid generation uses secureRandom rather than Security for randomnessEliot Horowitz2012-11-131-20/+17
|
* SERVER-6908 Don't pass strings by valueTad Marshall2012-08-311-1/+1
| | | | | Change lots of code to take <string> arguments by const ref instead of by value; minor changes to surrounding code.
* SERVER-5648 Replace old implementation of AtomicUInt64 with new one.Andy Schwerin2012-06-061-3/+3
|
* add OID::initSequentialEliot Horowitz2012-06-041-0/+22
|
* Headers, whitespace -- bson/oid.cppTad Marshall2012-06-011-10/+13
|
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-5/+4
|
* hack for older boost versions on 32-bit platformsEliot Horowitz2012-01-251-2/+3
|
* fix a case where boost assert definition snuck back into the bson include ↵dwight2011-12-281-5/+13
| | | | headers
* more include friendlydwight2011-12-271-0/+5
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+173