The OplogTruncaterThread will still call into the storage engine, but it's logic does not need to exist in that layer.
Replication should control
- whether to start the thread
- when to start the thread
Currently starting the OplogTruncaterThread is a byproduct of creating a local.oplog.* collection record store. That special logic can go away.
The WiredTigerKVRecordStore currently depends on the OplogTruncaterThread to initialize the OplogStones logic, which then pivots from the regular capped collection clean up process to the OplogStones variation. The storage layer will need some other indicator – ideally a generic one – to signal use of the OplogStones.
- duplicates
-
SERVER-38296 convert OplogTruncaterThread to be managed by WiredTigerKVEngine
- Closed
- is related to
-
SERVER-40173 Create a formal storage interface for oplog collection
- Closed