[SERVER-73211] add OpTime hasher for stdx::unordered_map and stdx::unordered_set Created: 23/Jan/23  Updated: 29/Oct/23  Resolved: 27/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-70905 handle multi-oplog batched writes dur... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-02-06
Participants:

 Description   

We currently do not have a built-in hasher for the repl::OpTime class. This makes it slightly inconvenient to use OpTime as a key with stdx::unordered_map/set. Subsystems that need to define such maps/sets have to provide a custom hasher.



 Comments   
Comment by Githook User [ 23/Jan/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-73211 add std::unordered_

{map,set}

hasher for OpTime
Branch: master
https://github.com/mongodb/mongo/commit/a41ce0e87f46e82a9ef3762f3b652f35e0ee434b

Generated at Thu Feb 08 06:23:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.