Unify RecordStore truncates

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: