[SERVER-9176] Move powerOfTwo check outside regular ttl loop Created: 29/Mar/13  Updated: 25/Feb/16  Resolved: 25/Feb/16

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Kyle Suarez
Resolution: Done Votes: 0
Labels: ttl
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Integration 11 (03/14/16)
Participants:

 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.



 Comments   
Comment by Kyle Suarez [ 25/Feb/16 ]

There doesn't appear to be a powerOfTwo check in the TTL loop, so I'm closing this as Gone Away.

Generated at Thu Feb 08 03:19:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.