[CDRIVER-4089] Rename sd to handshake_sd where appropriate Created: 16/Jul/21  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Improve Developer Experience

 Description   

Background & Motivation

CDRIVER-3653 makes improvements to track a mongoc_server_description_t constructed from the initial connection handshake. It would help code readability to distinguish a mongoc_server_description_t constructed from an initial connection handshake from a mongoc_server_description_t obtained from the topology description (i.e. from monitoring).

They are subtly different, and often variables are named sd so it is not immediately clear where the server description was obtained.

Scope

  • Rename sd to handshake_sd in mongoc_server_stream_t.
  • Rename sd to handshake_sd in authentication functions in mongoc-cluster.c, like _mongoc_cluster_auth_node_cr that expect a server description from the connection handshake.

Generated at Wed Feb 07 21:19:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.