[SERVER-45761] Use same clock for test and working code in session_test [v4.0] Created: 24/Jan/20  Updated: 29/Oct/23  Resolved: 27/Jan/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.0.15
Fix Version/s: 4.0.16

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Matthew Russotto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-43695 Add sleeps to session_test.cpp to acc... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-01-27, Repl 2020-02-10
Participants:
Linked BF Score: 0

 Description   

This was fixed in 4.2 by SERVER-36697, but that would be difficult to backport (and would affect more than just test code). Instead, in 4.0, we can use the real precision clock source instead of Date_t::now() for comparison purposes.



 Comments   
Comment by Githook User [ 27/Jan/20 ]

Author:

{'email': 'matthew.russotto@10gen.com', 'username': 'mtrussotto', 'name': 'Matthew Russotto'}

Message: SERVER-45761 Use same clock for test and working code in session_test [v4.0]
Branch: v4.0
https://github.com/mongodb/mongo/commit/678eadde4a2640a33cd288a565f74366433fb44f

Generated at Thu Feb 08 05:09:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.