summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_options_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-40436 Ignore the 'flags' field from the 'create' commandGregory Wlodarek2019-04-111-1/+0
|
* 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-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-35596 "max" field of the createCollection command should be sanitized ↵Sean Tao2018-07-051-0/+47
| | | | prior to being interpreted as a long long
* SERVER-27244 Status usage compile-time facilities.ADAM David Alan Martin2017-06-181-1/+1
| | | | | | | | | | | | | | | | | 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-29255 CollectionOptions with UUID passes validationBenety Goh2017-05-171-3/+6
|
* SERVER-28294 Host CollectionUUID on top of standalone UUID librarysamantharitter2017-03-221-1/+1
|
* SERVER-27987 Create and persist UUIDs for newly created collectionsGeert Bosch2017-03-081-17/+22
|
* SERVER-27243 Ignore invalid collection options if 'create' presentCharlie Swanson2016-12-131-4/+24
| | | | | | | | | | | | | It is possible for older versions of MongoDB to save invalid collection options which should be ignored. Older versions also would include a 'create' field in the collection options when a collection was created, and possibly re-order the fields of the options document during a subsequent 'collMod'. If the 'create' option is present at all, we should take that to mean that these options were created on an older version of MongoDB, and ignore unknown options. Otherwise, we should reject unknown options. (cherry picked from commit 6fba074768fad5f47611de38682257257005a1a6)
* SERVER-26648 tolerate bad collection metadata produced on version 2.4 or earlierDavid Storch2016-10-251-1/+19
|
* SERVER-26571 ignore 'create' field during collection options parsingDavid Storch2016-10-141-0/+18
| | | | | This ensures that we can handle collection metadata created on version 2.4 or earlier.
* SERVER-25459 Create command should reject unknown optionsTess Avitabile2016-10-031-11/+8
|
* SERVER-24127 Avoid overflow rounding up the capped sizeGeert Bosch2016-09-301-1/+20
|
* SERVER-24508 BSONObj::ComparatorInterfaceDavid Storch2016-08-181-8/+8
| | | | | | | | | | | BSONObj instances should now be compared via the comparator interface's evaluate() method. This preferred over using BSONObj::woCompare() directly. If the comparison doesn't require any database semantics (e.g. there is no collation), there is a global instance of the SimpleBSONObjComparator which should be used for BSONObj comparisons. If the comparison requires special semantics, then callers must instantiate their own comparator object.
* SERVER-24766 implement basic views libraryKyle Suarez2016-07-071-0/+19
| | | | | | | | Adds the basic infrastructure for read-only non-materialized views, as well as the ability to create them (but not use them). Views are disabled by default unless mongod is given the setParameter enableViews=1.
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-3/+3
|
* SERVER-23945 make index builds without a collation inherit the collection ↵David Storch2016-05-251-0/+5
| | | | | | | | default Also ensures that the full BSON representation of the collation spec associated with an index or with a collection is materialized in the catalog.
* SERVER-23849 add default CollatorInterface to CollectionDavid Storch2016-04-271-0/+42
| | | | | The collator is parsed from BSON provided by the CollectionCatalogEntry's CollectionOptions.
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-152/+152
|
* SERVER-18227 Initial part of document validationMathias Stearn2015-05-081-0/+16
| | | | | This covers setting and changing the validator as well as enforcing it for insert and update.
* SERVER-17894 added CollectionOptions::isValid() and ↵Benety Goh2015-04-101-0/+16
| | | | CollectionOptions::validate()
* SERVER-17370 Fix bugs in storage engine-specific index and collection optionsMathias Stearn2015-03-191-5/+3
|
* Revert "SERVER-17356 Rename 'storageEngine' to 'storage' in collection and ↵Dan Pasette2015-02-251-27/+27
| | | | | | index options" This reverts commit aa207c8f93ca264fd292980defca1cff315f2a47.
* SERVER-17356 Rename 'storageEngine' to 'storage' in collection and index optionsMathias Stearn2015-02-241-27/+27
|
* SERVER-16137 validate collection storage options for all storage enginesEric Milkie2014-12-011-10/+8
|
* SERVER-16069 Input validation on the arguments to createCollectionBenety Goh2014-11-121-4/+13
|
* SERVER-13635 engine-specific component in collection optionsBenety Goh2014-10-151-0/+65
|
* SERVER-13737 CollectionOptions parser skip size/max if non-numericJason Rassi2014-05-211-0/+30
|
* SERVER-13737 Pull CollectionOptions out into libcollection_options.aJason Rassi2014-05-211-0/+58