Skip to content

Commit 3168439

Browse files
author
Christian Hergert
committed
cluster: add debug message when unexpectingly connecting to sharded cluster
1 parent 7a07846 commit 3168439

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mongoc/mongoc-cluster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,10 @@ _mongoc_cluster_ismaster (mongoc_cluster_t *cluster,
10451045
/*
10461046
* TODO: This is actually a sharded cluster!
10471047
*/
1048+
if (cluster->mode != MONGOC_CLUSTER_SHARDED_CLUSTER) {
1049+
MONGOC_INFO ("Unexpectedly connected to sharded cluster: %s",
1050+
node->host.host_and_port);
1051+
}
10481052
}
10491053

10501054
/*

0 commit comments

Comments
 (0)