[SERVER-15675] Query stages should clear/set their OperationContext pointer in saveState()/restoreState() Created: 15/Oct/14  Updated: 02/Aug/18  Resolved: 20/Nov/14

Status: Closed
Project: Core Server
Component/s: Querying, Storage
Affects Version/s: None
Fix Version/s: 2.8.0-rc1

Type: Task Priority: Major - P3
Reporter: J Rassi Assignee: Gregory McKeon (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Comments   
Comment by Githook User [ 20/Nov/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-15675 Stages should clear their OperationContext in saveState()

While state is saved, threads pass in their own OperationContext to
invalidate(). When state is restored, the stage will resume with the
OperationContext passed in to restoreState().
Branch: master
https://github.com/mongodb/mongo/commit/5c9b4a636753e98de0ba7d9d518bfb6516f843d7

Comment by Githook User [ 20/Nov/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-15675 PlanStage::invalidate() needs OperationContext

PlanStage::invalidate() is always called by a different thread than
the stage's owning thread. The method should use the active
OperationContext (the caller's) rather than the stage's
OperationContext.
Branch: master
https://github.com/mongodb/mongo/commit/4c221b5ce50c3eaabc0348432b6df6c41aeabee5

Comment by Githook User [ 20/Nov/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-15675 Remove OperationContext from UpdateRequest/DeleteRequest

The write execution machinery should have a handle to the operation
context, not the write request structs.
Branch: master
https://github.com/mongodb/mongo/commit/429dc5819eb37e21d9e5c4573aae8421efd50ed7

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