Skip to content

Commit 262f933

Browse files
DmitryLukyanovvincentkam
authored andcommitted
CSHARP-2547: Set LastUpdateTimestamp to DateTime.UtcNow in WithHeartbeatException.
1 parent 6bda3fe commit 262f933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver.Core/Core/Servers/ServerDescription.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public ServerDescription WithHeartbeatException(Exception heartbeatException)
547547
electionId: _electionId,
548548
heartbeatException: heartbeatException,
549549
heartbeatInterval: _heartbeatInterval,
550-
lastUpdateTimestamp: _lastUpdateTimestamp,
550+
lastUpdateTimestamp: DateTime.UtcNow,
551551
lastWriteTimestamp: _lastWriteTimestamp,
552552
logicalSessionTimeout: _logicalSessionTimeout,
553553
maxBatchCount: _maxBatchCount,

0 commit comments

Comments
 (0)