Skip to content

Commit e3d57c4

Browse files
committed
Fix accidentally removed serverConnectionID assignment on handshake.
1 parent 1a4bcb7 commit e3d57c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x/mongo/driver/topology/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ func (c *connection) connect(ctx context.Context) {
223223
// We only need to retain the Description field as the connection's description. The authentication-related
224224
// fields in handshakeInfo are tracked by the handshaker if necessary.
225225
c.desc = handshakeInfo.Description
226+
c.serverConnectionID = handshakeInfo.ServerConnectionID
226227
c.helloRTT = time.Since(handshakeStartTime)
227228

228229
// If the application has indicated that the cluster is load balanced, ensure the server has included serviceId

0 commit comments

Comments
 (0)