@@ -1261,8 +1261,7 @@ server_description_not_found (uint32_t server_id,
1261
1261
}
1262
1262
1263
1263
static void
1264
- node_not_found (uint32_t server_id ,
1265
- mongoc_server_description_t * sd ,
1264
+ node_not_found (mongoc_server_description_t * sd ,
1266
1265
bson_error_t * error /* OUT */ )
1267
1266
{
1268
1267
if (sd -> error .code ) {
@@ -1271,13 +1270,13 @@ node_not_found (uint32_t server_id,
1271
1270
bson_set_error (error ,
1272
1271
MONGOC_ERROR_STREAM ,
1273
1272
MONGOC_ERROR_STREAM_NOT_ESTABLISHED ,
1274
- "Could not find node %u" , server_id );
1273
+ "Could not find node %s" ,
1274
+ sd -> host .host_and_port );
1275
1275
}
1276
1276
}
1277
1277
1278
1278
static void
1279
- stream_not_found (uint32_t server_id ,
1280
- mongoc_server_description_t * sd ,
1279
+ stream_not_found (mongoc_server_description_t * sd ,
1281
1280
bson_error_t * error /* OUT */ )
1282
1281
{
1283
1282
if (sd -> error .code ) {
@@ -1286,7 +1285,8 @@ stream_not_found (uint32_t server_id,
1286
1285
bson_set_error (error ,
1287
1286
MONGOC_ERROR_STREAM ,
1288
1287
MONGOC_ERROR_STREAM_NOT_ESTABLISHED ,
1289
- "Could not find stream for node %u" , server_id );
1288
+ "Could not find stream for node %s" ,
1289
+ sd -> host .host_and_port );
1290
1290
}
1291
1291
}
1292
1292
@@ -1380,7 +1380,7 @@ mongoc_cluster_fetch_stream_single (mongoc_cluster_t *cluster,
1380
1380
1381
1381
if (!stream ) {
1382
1382
if (!reconnect_ok ) {
1383
- stream_not_found (sd -> id , sd , error );
1383
+ stream_not_found (sd , error );
1384
1384
return NULL ;
1385
1385
}
1386
1386
@@ -1440,7 +1440,7 @@ mongoc_cluster_fetch_stream_pooled (mongoc_cluster_t *cluster,
1440
1440
1441
1441
/* no node, or out of date */
1442
1442
if (!reconnect_ok ) {
1443
- node_not_found (sd -> id , sd , error );
1443
+ node_not_found (sd , error );
1444
1444
return NULL ;
1445
1445
}
1446
1446
0 commit comments