Adjust oplog secondary code for pre-image deletion

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The oplog code for applyOperation_inLock for applying OpTypeEnum::kDelete operation on secondaries currently contains this code comment:

      // It is legal for a delete operation on the pre-images collection to delete
      // zero documents - pre-image collections are not guaranteed to contain the same
      // set of documents at all times. The same holds for change-collections as they
      // both rely on unreplicated deletes.
      

      This comment will become obsolete with replicated truncates on the pre-images collection and should be adjusted.
      Also there should not be any more individual deletes on the pre-images collection at all on secondaries, as documents in the pre-images collection are not deleted one by one, but via truncates.

            Assignee:
            Denis Grebennicov
            Reporter:
            Jan Steemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: