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

Don't lock MODE_X for compact() operation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Storage
    • None

    Description

      Both RocksDB and WiredTiger (I think) can execute compact() operation concurrently with read and write requests. However, mongo currently locks an entire database with MODE_X when it compacts: https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/compact.cpp#L146

      Would it make sense to remove this?

      Attachments

        Activity

          People

            Unassigned Unassigned
            igor Igor Canadi
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: