[SERVER-47803] Move the database level profile setting from Database into CollectionCatalog Created: 27/Apr/20  Updated: 29/Oct/23  Resolved: 14/May/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.7.0, 4.4.2

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-47872 Move the Database class' epoch into t... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Sprint: Execution Team 2020-05-18
Participants:

 Description   

We want to make the Database class stateless so that we do not need to version the Database class like the Collection class.

The Database class' _profile setting should go into the CollectionCatalog.

The initial idea is that CollectionCatalog will hold a new map of database name to profile level. Geert suggested only adding entries to the map if a non-default setting is set. We already do map lookups to fetch the Database instance, so doing a map lookup in CollectionCatalog instead of fetching the Database for the profile level shouldn't make a difference. It would be nice to do away with the map lookup every Collection read must do to fetch the profiling level, if some reasonable means can be thought up.

No need to version the profile level, per the project design.



 Comments   
Comment by Githook User [ 11/Sep/20 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-47803 Move the database level profile setting from Database into CollectionCatalog
Branch: v4.4
https://github.com/mongodb/mongo/commit/76573d9a0105e8d9795c47ad36cb73e195a29c9f

Comment by Githook User [ 14/May/20 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-47803 Move the database level profile setting from Database into CollectionCatalog
Branch: master
https://github.com/mongodb/mongo/commit/aebf6a5d01a28c7d5a3a4ee68d11c2e150291131

Generated at Thu Feb 08 05:15:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.