[SERVER-56436] Mark CancelableOperationContext as killed upon construction if cancellation token already canceled Created: 28/Apr/21  Updated: 29/Oct/23  Resolved: 29/Apr/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-05-03
Participants:
Story Points: 1

 Description   

This ensures the signal from the cancellation token cannot be missed due to when the task might otherwise run on the task executor.



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

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-56436 Immediately kill OperationContext if already canceled.
Branch: master
https://github.com/mongodb/mongo/commit/fb796e3eda46b39668a00e1e2caceba34f98d31c

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