summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_key_validate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-62209 Add 'comment' option to 'createIndex' commandShin Yee Tan2022-01-241-1/+9
|
* SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser2022-01-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-61009 Make createIndex a no-op on a cluster key and allow 'clustered' ↵Haley Connelly2021-12-141-9/+57
| | | | on cluster key
* SERVER-60492 Support clustered capped collections with TTL expirationJosef Ahmad2021-11-081-1/+5
|
* SERVER-58779 Store the original user index definition on the transformed ↵Gregory Wlodarek2021-08-041-0/+29
| | | | index definition on the buckets collection
* SERVER-51871 Remove remaining code relating to haystack indexesJennifer Peshansky2021-07-131-20/+8
|
* SERVER-13938 Enabling adding expireAfterSeconds to convert to a TTL indexYuhong Zhang2021-06-151-1/+1
|
* SERVER-55708 move IndexDescriptor::isIndexVersionAllowedForCreation to ↵Benety Goh2021-04-031-1/+16
| | | | index_key_validate
* SERVER-55708 remove unused parameter from ↵Benety Goh2021-04-021-4/+1
| | | | index_key_validate::validateIndexSpec()
* SERVER-55708 remove unused parameter from ↵Benety Goh2021-04-021-2/+2
| | | | | | IndexDescriptor::isIndexVersionAllowedForCreation() Last reference to this parameter was removed in commit 67500efdc1c677173c737ecde2b07b42015ae5fd.
* SERVER-55708 remove std importBenety Goh2021-04-021-3/+1
|
* SERVER-54712 createIndexes should not permit 'weights' for non-text indexesArun Banala2021-03-301-10/+21
|
* SERVER-54007 Support TTL deletions on time-series clustered indexesLouis Williams2021-03-011-22/+28
|
* SERVER-52874 Implement validateDBMetadata commandArun Banala2021-02-171-0/+6
|
* SERVER-51624 Modify query commands to enforce API version 1 behaviourRuoxin Xu2021-01-301-1/+9
|
* SERVER-53739 Validate all createIndexes optionsA. Jesse Jiryu Davis2021-01-201-4/+32
| | | | | Prevent createIndexes from creating invalid index catalog entries, which would make listIndexes fail.
* Revert "SERVER-53739 Temporary code to validate all createIndexes options"Benety Goh2021-01-151-31/+3
| | | | This reverts commit c8e3d8c339141e4799b2c3519b54eb79025dea3d.
* SERVER-53739 Temporary code to validate all createIndexes optionsA. Jesse Jiryu Davis2021-01-141-3/+31
| | | | | | Temporary fix to prevent createIndexes from creating invalid index catalog entries, which would make listIndexes fail. The thorough fix will be in SERVER-52539.
* SERVER-52539 Validate createIndexes "background" optionA. Jesse Jiryu Davis2021-01-041-0/+6
| | | | | Although we now ignore this option, a non-bool-like value creates a catalog entry that "listIndexes" cannot parse.
* SERVER-52525 extract index_key_validate::validateIndexSpecTTL() from ↵Benety Goh2020-11-201-0/+51
| | | | createIndexes command
* SERVER-47081 Disallow creation of haystack indexes and verify that haystack ↵Mihai Andrei2020-11-111-1/+16
| | | | indexes are maintained in mixed version clusters
* SERVER-47743 Remove all hidden index FCV checks and multiversion tests on ↵Ruoxin Xu2020-04-281-10/+0
| | | | master after backport
* 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-9306 Ability to temporarily forbid query optimizer from using index ↵Zhihui Fan2020-04-221-0/+24
| | | | | | ("Hidden Index") SERVER-47275 Take over and complete Hidden Indexes PR Co-authored-by: Ruoxin Xu <ruoxin.xu@mongodb.com>
* SERVER-47397 enhanced logging for Execution owned files (part 1)Eric Milkie2020-04-221-0/+1
|
* SERVER-45489 Remove compound hashed shard key FCV related codeArun Banala2020-03-121-13/+0
|
* SERVER-46791 Fix incorrect FCV initialisation check to allow compound hashed ↵Arun Banala2020-03-121-3/+3
| | | | index
* SERVER-46750 Fix error message when creating compound hashed index while on ↵Arun Banala2020-03-101-2/+1
| | | | FCV 4.2
* SERVER-45567 removing util/log.h where I canGabriel Russell2020-02-211-3/+5
| | | | | | | o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
* SERVER-45454 Desugar where to expr + functionEric Cox2020-02-131-2/+4
|
* SERVER-44256 Allow compound hashed indexes to be built in non-test deploymentsArun Banala2020-01-181-3/+1
|
* SERVER-43291 Consolidate projection execution interfacesAnton Korshunov2019-11-151-1/+1
|
* SERVER-43911 Permit building compound hashed indexesArun Banala2019-10-281-2/+18
|
* SERVER-44035 Remove dupe field nameDaniel Hatcher2019-10-151-1/+0
|
* SERVER-43317 merge failpoint headers. Rewrite docs.Billy Donahue2019-10-031-1/+1
| | | | iterate docs
* SERVER-43119 FailPoint cleanupBilly Donahue2019-09-101-1/+1
| | | | | | | | | | | - Don't use MONGO_INITIALIZER to declare each fail point. We only need one init task in total: freeze and iterate the registry. - remove MONGO_FAIL_POINT_DECLARE macro (extern) - remove MONGO_FAIL_POINT_SHOULD_FAIL macro (FailPoint::shouldFail) - remove MONGO_FAIL_POINT_BLOCK_IF (FailPoint::executeIf) - remove MONGO_FAIL_POINT_BLOCK (FailPoint::execute) - clean up FailPointRegistry and fail_point_service implementation.
* SERVER-41230 Update FCV constants throughout server code following 4.2 branchBernard Gorman2019-08-231-9/+0
| | | | | | | SERVER-42162 Update Execution-related generic upgrade/downgrade references SERVER-42642 Update Replication-related generic upgrade/downgrade references SERVER-42592 Update Sharding-related generic upgrade/downgrade references SERVER-42794 Update Query-related generic upgrade/downgrade references SERVER-41545 Bump wire protocol version for 4.4
* SERVER-41696 Remove the 'ns' field from index specsGregory Wlodarek2019-07-291-43/+14
|
* SERVER-41772 Apply clang-format 7.0.1 to the codebaseclang-format-7.0.12019-07-271-41/+33
|
* SERVER-41422 Allow the absence of the 'ns' field from index specsGregory Wlodarek2019-06-111-1/+4
|
* SERVER-41263 Disallow empty string in index key typeXin Hao Zhang2019-06-051-0/+8
|
* SERVER-41394 Improve error message for wildcard index creationXin Hao Zhang2019-06-031-1/+2
|
* SERVER-40476 remove mongoutils::strBilly Donahue2019-04-091-6/+3
| | | | | | 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-081-2/+2
|
* SERVER-39669 Support creating index builds with unknown optionsGregory Wlodarek2019-02-251-0/+17
|
* 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-35402 Add validators where applicable in query_knobs.cppArun Banala2019-02-061-1/+1
|
* SERVER-39032 remove unnecessary NamespaceString::ns() calls from db/catalog/Benety Goh2019-01-241-1/+1
|
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-21/+23
|
* SERVER-36198 Remove 'internalQueryAllowAllPathsIndexes' server parameterBernard Gorman2018-10-031-7/+0
|