SERVER-136110Open

LogCaptureGuard::_isSubset early-returns incorrectly for nested objects

Some of {{LogCaptureGuard}}'s BSON subset matching functions ignore any elements following a nested object field if the object matches. For example, when checking the following (in a code block for jira formatting reasons): It will erroneously return true because b: 1 matched the key a in both sides. The following test added in log_capture_test.cpp would illustrate the issue:

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.