mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? No ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Cleaning up dirty cursors left behind from abandoned cursors ---- #### AI description (iteration 1) #### PR Classification Bug fix #### PR Summary This pull request addresses an issue with cleaning up cursors that are left behind in the system. - `cursors.c`: Added logic to close open held portals and clean up cursor state to prevent reuse of old cursors. - `bson_aggregation_cursor_tests.out` and `bson_aggregation_cursor_tests.sql`: Added tests to verify the new cursor cleanup behavior. - `bson_aggregation_stage_out_tests_2.out`: Updated expected test outputs to reflect the new cursor cleanup notices.