[GODRIVER-1060] Do not send client metadata on regular operation.IsMaster.Execute invocations Created: 14/May/19  Updated: 28/Oct/23  Resolved: 03/Jun/19

Status: Closed
Project: Go Driver
Component/s: Core API
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Improvement Priority: Critical - P2
Reporter: Kristofer Brandow (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Core API

 Description   

The operaiton.IsMaster type supports two different modes of execution: Execute and Handshake. The Handshake method is called when setting up a new connection and should send client metadata. The Execute method is called during heartbeats and should not send client metadata. To fix this, create a second command method that is used during Execute that does not add client metadata to the document.



 Comments   
Comment by Githook User [ 03/Jun/19 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: Only send client metadata on handshakes and not heartbeats.

GODRIVER-1060

Change-Id: I5822d789e33cebdc89daf2d2414a14d00a19419c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/caa7ff0b0bd27fc5e3785f26315f1273fd9073b3

Comment by Divjot Arora (Inactive) [ 17/May/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/454943

Generated at Thu Feb 08 08:35:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.