Skip to content

Commit b855c82

Browse files
committed
CDRIVER-1144 fix heartbeat started event
We had been skipping the second and later heartbeat started events as long as the monitoring connection stayed open.
1 parent 44765ab commit b855c82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongoc/mongoc-topology-scanner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,12 @@ mongoc_topology_scanner_node_setup (mongoc_topology_scanner_node_t *node,
564564
{
565565
mongoc_stream_t *sock_stream;
566566

567+
_mongoc_topology_scanner_monitor_heartbeat_started (node->ts, &node->host);
568+
567569
if (node->stream) { return true; }
568570

569571
BSON_ASSERT (!node->retired);
570572

571-
_mongoc_topology_scanner_monitor_heartbeat_started (node->ts, &node->host);
572-
573573
if (node->ts->initiator) {
574574
sock_stream = node->ts->initiator (node->ts->uri, &node->host,
575575
node->ts->initiator_context, error);

0 commit comments

Comments
 (0)