[SERVER-17312] Collmod must persist all supported options, regardless of current storage engine Created: 17/Feb/15  Updated: 18/Sep/15  Resolved: 20/Feb/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.0.0-rc9, 3.1.0

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-17320 Need a way for collmod to support arb... Closed
Backwards Compatibility: Minor Change
Backport Completed:
Participants:

 Description   

Currently, there are only two supported storage engine specific options: usePowerOf2Sizes and noPadding. These should both effect the options.flags field of the collection as seen by the listCollections command. For now all other options will be rejected. A general solution to allow arbitrary engine-specific options (similar to createCollection) will be designed for 3.2.



 Comments   
Comment by Githook User [ 20/Feb/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-17312 collmod command now handles parsing of all arguments

For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.

(cherry picked from commit ae18bbec33db1c4bf57d328505474eb7bba517df)

Conflicts:
src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp
src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp
src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.h
Branch: v3.0
https://github.com/mongodb/mongo/commit/a162b3564dbfcedc431addf6b543320c26755e6a

Comment by Githook User [ 20/Feb/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-17312 collmod command now handles parsing of all arguments

For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.
Branch: master
https://github.com/mongodb/mongo/commit/ae18bbec33db1c4bf57d328505474eb7bba517df

Generated at Thu Feb 08 03:43:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.