[SERVER-28309] Delete RangePreserver Created: 14/Mar/17  Updated: 06/Dec/17  Resolved: 21/Apr/17

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: 3.5.7

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-27760 Replace RangeDeleter with CollectionR... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2017-05-08
Participants:

 Description   

The RangePreserver is an RAII class which opens a special ClientCursor on construction, and deletes it on destruction. The purpose of this ClientCursor is to allocate a special cursor id whose presence will prevent the deletion of chunk ranges which might still be needed by an active query.

The planned work in SERVER-27760 will remove the use of cursor ids for determining which chunk ranges can be cleaned up. Therefore, once SERVER-27760 is resolved, uses of the RangePreserver can be removed and the class can be deleted.



 Comments   
Comment by Githook User [ 21/Apr/17 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-28309 remove RangePreserver class

RangePreserver was an old way to ensure that necessary chunk
ranges are not deleted during query execution. This is now
handled by ScopedCollectionMetadata.
Branch: master
https://github.com/mongodb/mongo/commit/d36bda7504883775be245d829ce7ada221d182ec

Generated at Thu Feb 08 04:17:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.