Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#15726 from nvinuesa/juju-3935-3
juju#15726 _Note: This is a backport of juju#15723 on 3.1_ Having the fullDocumentBeforeChange value set to 'off' in the mongodb watcher results in this silent error: ``` BSON field '$changeStream.fullDocumentBeforeChange' is an unknown field ``` because this field is added on mongodb 6.0. Since we are setting it to 'off' which is also the default value on mongodb >= 6.0, it's safe to simply remove it. ## Checklist *If an item is not applicable, use `~strikethrough~`.* - [ ] ~Code style: imports ordered, good names, simple structure, etc~ - [ ] ~Comments saying why design decisions were made~ - [ ] ~Go unit tests, with comments saying what you're testing~ - [ ] ~[Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing~ - [ ] ~[doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages~
- Loading branch information