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

Move powerOfTwo check outside regular ttl loop

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Index Maintenance
    • Integration 11 (03/14/16)

    Description

      In addition there is no need to take a write lock out unless the setting has to be changed. If power-of-2 allocation is not required for TTL collections we should move this check to the index creation.

      This code also doesn't need to check on every iteration like this and would only need to check once per collection.

      If we had some internal notification system for collection/index create/delete it would be easier to ensure this without checking all the time.

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: