Skip to content

Mongodb op msg database commands fix#4004

Merged
aleks-f merged 2 commits intopocoproject:develfrom
matejk:mongodb_op_msg_database_commands_fix
May 5, 2023
Merged

Mongodb op msg database commands fix#4004
aleks-f merged 2 commits intopocoproject:develfrom
matejk:mongodb_op_msg_database_commands_fix

Conversation

@matejk
Copy link
Copy Markdown
Contributor

@matejk matejk commented Apr 11, 2023

This PR is built on top of #3998.

Some MongoDB commands do not require collection as an argument. For most of the commands any value (even strings) will do, however others are more picky and require integer 1.

This PR changes the behaviour to always pass 1 for non-collection commands.

@matejk matejk force-pushed the mongodb_op_msg_database_commands_fix branch from e1655b5 to c125a3b Compare April 11, 2023 09:30
…cursor requests failed.

* Improvement: Add emptyFirstBatch to indicate that the size of the first batch shall be zero for performance to get potential error ASAP from the server.
@matejk matejk force-pushed the mongodb_op_msg_database_commands_fix branch from c125a3b to 87c092d Compare April 26, 2023 10:53
@matejk matejk force-pushed the mongodb_op_msg_database_commands_fix branch from 87c092d to ed8efaf Compare April 26, 2023 10:55
@aleks-f aleks-f added this to the Release 1.13.0 milestone May 5, 2023
@aleks-f aleks-f merged commit 971a7cc into pocoproject:devel May 5, 2023
@matejk matejk deleted the mongodb_op_msg_database_commands_fix branch May 11, 2023 10:27
aleks-f pushed a commit that referenced this pull request Nov 27, 2023
* * Fix: MongoDB::OpMsgCursor did not handle zero batch size properly: cursor requests failed.
* Improvement: Add emptyFirstBatch to indicate that the size of the first batch shall be zero for performance to get potential error ASAP from the server.

* Poco::MongoDB: Some database commands do not need collection as an argument. An integer "1" is passed instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants