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

Move powerOfTwo check outside regular ttl loop

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Integration 11 (03/14/16)

      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.

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

              Created:
              Updated:
              Resolved: