Fix replica set parsing for MongoDB versions 5.0+, which have helloOk "operation" instead of hosts as in previous versions. Currently replicaset is not parsed correctly and label is empty. After the change mongoproxy is confirmed to be working as expected in our test environment, replicaset label is populated.
Fix replica set parsing for MongoDB versions 5.0+, which have
helloOk
"operation" instead ofhosts
as in previous versions. Currently replicaset is not parsed correctly and label is empty. After the changemongoproxy
is confirmed to be working as expected in our test environment,replicaset
label is populated.