[SERVER-40989] Scrub HostAndPort of kruft Created: 03/May/19  Updated: 29/Oct/23  Resolved: 07/Jun/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.0-rc3, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Benjamin Caimano (Inactive) Assignee: Mathias Stearn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Service Arch 2019-05-20, Service Arch 2019-06-03, Service Arch 2019-06-17
Participants:

 Description   

HostAndPort now has a SockAddr optional that it carries around for relatively little use. We should obviate that.

As a stretch goal that probably won't happen, we also carry around a std::string host for every HaP. Standard use sees maybe 6 hosts ever used to construct HaP. We could probably figure out a place to stash these strings and actually have StringData instead.



 Comments   
Comment by Githook User [ 02/Jul/19 ]

Author:

{'name': 'Mathias Stearn', 'email': 'mathias@10gen.com', 'username': 'RedBeard0531'}

Message: SERVER-40989 Get SockAddr out of HostAndPort

224 bytes -> 40 bytes
Branch: v4.2
https://github.com/mongodb/mongo/commit/cdf7c88be60b287c316beda42b4ff9f197617942

Comment by Githook User [ 02/Jul/19 ]

Author:

{'name': 'Mathias Stearn', 'username': 'RedBeard0531', 'email': 'redbeard0531@gmail.com'}

Message: SERVER-40989 Get SockAddr out of HostAndPort (enterprise)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/0d295ea1798a3b1a32f0a19a337ee948c343c405

Comment by Githook User [ 06/Jun/19 ]

Author:

{'name': 'Mathias Stearn', 'email': 'mathias@10gen.com', 'username': 'RedBeard0531'}

Message: SERVER-40989 Get SockAddr out of HostAndPort

224 bytes -> 40 bytes
Branch: master
https://github.com/mongodb/mongo/commit/87f9f974744e15b8bf49823ff67cb6c5170a279b

Comment by Githook User [ 06/Jun/19 ]

Author:

{'name': 'Mathias Stearn', 'email': 'redbeard0531@gmail.com', 'username': 'RedBeard0531'}

Message: SERVER-40989 Get SockAddr out of HostAndPort (enterprise)
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/30e3bfe01387142c93755daeaeb5de3672b77c8d

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