[SERVER-30160] Template range_arithmetic functions Created: 14/Jul/17  Updated: 27/Oct/23  Resolved: 24/Jul/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.5.10
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Hugh Han Assignee: Hugh Han
Resolution: Gone away Votes: 0
Labels: sharding
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-07-31
Participants:

 Description   

Currently, the functions regarding overlapping ranges within range_arithmetic.h and range_arithmetic.cpp work only with BSONObjIndexedMap<CachedChunkInfo>.

We should template these functions so that they can work with any type of BSONObjIndexedMap<T>.



 Comments   
Comment by Hugh Han [ 24/Jul/17 ]

Because RangeMap should not be used if possible, and ChunkSizeTracker is no longer being used, there is no need to template the range_arithmetic functions.

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