[SERVER-55479] Invariant that the first table checked in WiredTigerUtil::setTableLogging() is the _mdb_catalog Created: 24/Mar/21  Updated: 29/Oct/23  Resolved: 07/Apr/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-43664 Speedup WiredTiger storage engine sta... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-04-19
Participants:

 Description   

The optimization done in SERVER-43664 assumes that the first table checked in WiredTigerUtil::setTableLogging is the _mdb_catalog. However, there are no assertions to verify this claim. We should add such an assertion to prevent unexpected behaviour with the optimization if this were to change in the future. If, say, for some reason, the first table checked is part of the local database, the behaviour would be incorrect.



 Comments   
Comment by Githook User [ 07/Apr/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-55479 Invariant that the first table checked in WiredTigerUtil::setTableLogging() is the _mdb_catalog
Branch: master
https://github.com/mongodb/mongo/commit/00a9e47df8ebd2c8b224eb3a38fe6ffbfe406268

Comment by Louis Williams [ 06/Apr/21 ]

We should be careful about doing this in a way that prevents a user from starting up if they encounter a bug.

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