Do not hold collection cloner mutex while inserting documents into storage

XMLWordPrintableJSON

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

      We hold the collection cloner mutex while inserting documents into storage. Since we also hold this mutex while populating the _documentsToInsert buffer, this prevents us from simultaneously inserting into the buffer and inserting into storage. We should avoid holding this mutex while inserting into storage. This would require us to have throttling for _documentsToInsert so that its size does not grow without bound.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: