[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. Change-Id: I5822d789e33cebdc89daf2d2414a14d00a19419c |
| Comment by Divjot Arora (Inactive) [ 17/May/19 ] |
|
CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/454943 |