Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-74593

Unify RecordStore truncates

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution

    Description

      As part of SERVER-74472 we had to add a new rangeTruncate method that is not tied to the same nuance as the normal truncate method.

      In particular, the two differ in the sense that:

      • truncate clears out the oplog truncate markers, and clears the sizeStorer info
      • rangeTruncate expects the user to provide a hint for how much data it will remove and updates the sizeStorer information only

      The difference is subtle, but impedes fully merging the two methods without rewriting the current callers of truncate. Additionally, the Oplog truncate markers would have to be separated from living inside WiredTigerRecordStore in order to align the two methods' behaviour.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: