Clean up/simplify code around reserving oplog slots for inserts to capped collections

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Storage Execution 2025-07-07
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      There are several different places in our code base where we reserve oplog slots before writing to a capped collection. However, each of these places performs this action in slightly different ways:

      This has led to a very patch-work approach. It should be possible to simplify/unify this step, and possibly pull the work into collection_write_path::insertDocumentsImpl so that we don't miss this step.

            Assignee:
            Damian Wasilewicz
            Reporter:
            Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: