summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-47969 Use Pooled KeyString builder in all index key generators where ↵Henrik Edin2020-05-212-2/+11
| | | | | | possible Also ensure no quadratic insert behavior into the KeyStringSet
* SERVER-47994 Fix for numerical overflow in GeoHash (part 2)Svilen Mihaylov2020-05-186-49/+84
|
* SERVER-47994 Fix for numerical overflow in GeoHashSvilen Mihaylov2020-05-151-2/+11
|
* SERVER-47735 change mongo source over to logv2Billy Donahue2020-04-262-2/+2
| | | | | | - Remove several legacy logger/ files - Convert all MONGO_LOG_DEFAULT_COMPONENT to the LOGV2 version. - Globally replace logger::{LogSeverity,LogComponent} => logv2::
* SERVER-46127 unit tests log to a kTest componentGabriel Russell2020-04-141-1/+1
|
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-213-3/+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-132-8/+24
|
* SERVER-43175 platform/endian.h refreshBilly Donahue2019-10-021-31/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very low-level bare metal header, and should ideally #include only std headers. - Remove Decimal128 dependency from endian.h. Decimal128 doesn't need endian conversions, and makes endian.h transitively include several higher-level mongo specifics. Current conversions are underspecified and mathematically incorrect or at least ambiguous. They swap the order within each of the low64 and high64 fields, but don't swap them with each other. This is behavior needed only by one spot in db/pipeline/value.cpp to deserialize NumberDecimal, so we can just inline the behavior there and remove it from endian.h. - Remove MONGO_CONFIG_BYTE_ORDER from config.h. The running compiler holds the ultimate truth on what the target endianness is (available via _BYTE_ORDER_). We should not read it from a config header. The names exported into C++ code for the endian possibilities can be changed to line up with those in C++20's std::endian {big,little,native} enum. This eliminates the Scons<=>C++ bridge protocol of "1234" and "4321" magic numbers. Scons will talk to the compiler, not directly to the code. - Use enum expressions (including if constexpr) rather than #if for branching on endianness. This makes bit-rot of unexecuted paths less likely, and is just cleaner C++. - Remove bswap_slow variants. All supported compilers have builtin bswap operations. Can reduce to a simple MSVC vs GCC branching. All compilers have a builtin, so remove the bswap_slow" implementation. - Don't need all the push_macro / pop_macro stuff, or really any macros at all. Just rely on inline C++ functions. These optimize to the same thing. - Don't need ByteOrderConverter or IntegralTypeMap traits either. Simpler metaprogramming based only on sizeof will work fine. All in all we can remove about 400 lines of old code here and shave some low-level edges off of the dependency graph. - benchmark
* SERVER-43418 ASSERT macro repairsBilly Donahue2019-10-021-2/+4
| | | | | - fix dangling else - all ASSERT* yield a stream expression for appending detail
* SERVER-41730 Make TwoDAccessMethod generate keys using KeyStringGregory Noma2019-08-153-0/+24
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-279-129/+71
|
* SERVER-41809 Collapse unit tests on a per-directory basisAndrew Morrow2019-06-201-16/+14
|
* SERVER-41071 Replace NULL and 0 with nullptrA. Jesse Jiryu Davis2019-06-143-123/+124
|
* SERVER-39339 Remove `stdx/memory.h`ADAM David Alan Martin2019-06-102-4/+3
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-095-17/+8
| | | | | | 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-082-8/+6
|
* SERVER-40357 expand all calls to MONGO_DISALLOW_COPYINGBilly Donahue2019-03-281-2/+2
| | | | | | | | | | | 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
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-1318-18/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-2218-252/+288
|
* SERVER-34307 replace invariant(false) with MONGO_UNREACHABLEBenety Goh2018-04-043-7/+7
|
* SERVER-34106 Remove all uses of `std::auto_ptr`.ADAM David Alan Martin2018-03-231-3/+3
|
* SERVER-17414 Enable Warnings As Errors on Windows, and disable/fix warningsMark Benvenuto2017-10-201-0/+4
|
* SERVER-27968 $geoWithin with $centerSphere should return LineString and ↵Tess Avitabile2017-10-101-0/+23
| | | | Polygon geometries
* Revert "SERVER-27968 $geoWithin with $centerSphere should return LineString ↵Ramon Fernandez2017-10-101-23/+0
| | | | | | and Polygon geometries" This reverts commit f24f7830d01193db30102b8381eeaf4c011d0ea9.
* SERVER-27968 $geoWithin with $centerSphere should return LineString and ↵Wan Bachtiar2017-10-101-0/+23
| | | | | | | | Polygon geometries Closes #1184 Signed-off-by: Tess Avitabile <tess.avitabile@mongodb.com>
* SERVER-30580 Eliminate UserException and MsgAssertionException typesMathias Stearn2017-08-161-2/+2
| | | | All users were converted to just use AssertionException.
* SERVER-29887 address clang-4.0 warnings in geo codeMathias Stearn2017-07-261-4/+2
|
* Revert "SERVER-29887 address clang-4.0 warnings in geo code"Mathias Stearn2017-07-141-2/+4
| | | | This reverts commit 8204c7dacf17851057dda165e6d1638cbff70cbf.
* SERVER-29887 address clang-4.0 warnings in geo codeMathias Stearn2017-07-131-4/+2
|
* SERVER-27244 Status usage compile-time facilities.ADAM David Alan Martin2017-06-181-5/+7
| | | | | | | | | | | | | | | | | There are numerous places in the codebase where `mongo::Status` or `mongo::StatusWith< T >` objects are returned and never checked. Many of these are innocuous, but many of them are potentially severe bugs. This change introduces facilities to permit compile-time warning of unchecked `Status` and `StatusWith` usage on clang compilers. It introduces an `ignore` function which is useful to state that a specific "ignored status" case was intentional. It not presently an error, in clang builds, to forget to check a `Status` -- this will come in a later commit. This also introduces a `transitional_ignore` function, which allows for easy continual auditing of the codebase for current "whitelisted" unchecked-status instances. All present "ignored status" cases have been marked `transitional_ignore`.
* SERVER-27975 Remove many uses of `OwnedPointerVector`ADAM David Alan Martin2017-03-103-13/+28
| | | | | This removes many of the remaining uses of the deprecated `OwnedPointerVector` type.
* SERVER-27497 Scope SCons Environment changes narrowlyAndrew Morrow2017-01-031-1/+3
|
* SERVER-16363 Remove all volatile storage types from server source codeMark Benvenuto2016-12-291-2/+2
|
* SERVER-24991 log redaction for commands, concurrency, exec, indexThomas Schubert2016-09-021-2/+4
|
* SERVER-23103 Split several libraries out of db/serveronlyAndrew Morrow2016-07-111-150/+0
|
* SERVER-5905 Add operation latency histogramKevin Albertson2016-06-241-0/+7
|
* Revert "SERVER-5905 Add operation latency histogram"Mathias Stearn2016-06-241-7/+0
| | | | This reverts commit c7794350b056cdea85e1c6185a7dda4579936179.
* SERVER-5905 Add operation latency histogramKevin Albertson2016-06-231-0/+7
| | | | Signed-off-by: Kyle Suarez <kyle.suarez@mongodb.com>
* SERVER-23114 Move functions involving dotted paths to separate library.Max Hirschhorn2016-06-032-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 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-2810-113/+163
|
* SERVER-23480 make Command::parseNsCollectionRequired and oplog.cpp's parseNs ↵Esha Maharishi2016-04-211-2/+2
| | | | return NamespaceString
* SERVER-20224 commands that write support writeConcernJudah Schvimer2016-04-121-0/+3
|
* SERVER-23024 remove isWriteCommandForConfigServer methodMisha Tyulenev2016-03-151-3/+0
|
* SERVER-22695 fix left shift of negative number in GeoHash::clearUnusedBits()David Storch2016-03-032-10/+40
|
* SERVER-22568 Re-enable GeoHash::unhash_fast for big endianWaley Chen2016-02-241-1/+0
|
* SERVER-22568 Re-enable GeoHash::unhash_fast for big endianWaley Chen2016-02-243-12/+132
|
* SERVER-22567 use GeoHash::unhash_slow on big endianJason Carey2016-02-111-0/+4
|
* SERVER-21467 Include config.hTess Avitabile2016-01-251-0/+1
|
* SERVER-21467 Do not reverse byte order of GeoHash data on big-endian systemsTess Avitabile2016-01-221-29/+14
|
* SERVER-21459 reserve bytes in ReplyBuilder buffer to avoid excessive reallocingAdam Midvidy2015-11-171-0/+5
|