[SERVER-66810] Pull expensive calls like _wakeReadyWaiters out of the replSetUpdatePosition inner loop Created: 26/May/22  Updated: 29/Oct/23  Resolved: 08/Jun/22

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

Type: Improvement 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:
Backports
Related
related to SERVER-59776 50% regression in single multi-update Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.3, v5.0
Sprint: Repl 2022-05-30, Repl 2022-06-13
Participants:

 Description   

We only need to wake waiters once after doing all the update positions, not once for every secondary updated.



 Comments   
Comment by Githook User [ 08/Jun/22 ]

Author:

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

Message: SERVER-66810 Pull expensive calls like _wakeReadyWaiters out of the replSetUpdatePosition inner loop
Branch: master
https://github.com/mongodb/mongo/commit/ada9a8dcd4d6548f70afbce6dcbe3f7920bce253

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