SERVER-137320ClosedFixed

Add the ExpressionContext change-stream error-event slots

h2. Deliverable Add per-cursor, per-node change-stream state to {{{}ExpressionContext{}}}. All state is gated by {{changeStreamShowsErrorsAsEvents()}} (which reads {{{}spec.showErrorsAsEvents{}}}); when the flag is off, the state operations are no-ops. * {{activeChangeStreamEvent}} — {{optional<Document>}} * {{activeChangeStreamErrorSource}} — {{optional<ChangeStreamErrorSource>}} * {{pendingChangeStreamResumeGap}} — {{optional<Document>}} * {{pendingChangeStreamRouterErrorEvent

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.