MONGOC_TOPOLO...RITABLE_SERVER(3)
π¦ MONGOC_TOPOLO...RITABLE_SERVER(3) π¦
okay so bestie, welcome to the libmongoc corner of the man pages π this one's all about mongoc_topology_description_has_writable_server, and honestly? it's giving "quick vibe check, no drama." let's get into it β¨
β¨ SYNOPSIS β¨
bool
mongoc_topology_description_has_writable_server (
const mongoc_topology_description_t *td);
πΈ DESCRIPTION πΈ
So this function determines if the topology has a writable server available, like a primary, a mongos, or a standalone π those are the ones who can actually write, bestie, the main characters of your cluster fr fr.
And here's the part where it gets iconic: it works entirely off the driver's current knowledge of the state of the MongoDB server or servers it's connected to. It does no I/O and it does not block β so it's like, the chillest call ever, no waiting around, no awkward silence, no network side quests π it just tells you what the driver already knows. periodt π
π PARAMETERS π
tdβ amongoc_topology_description_t. that's the whole vibe, she's the one holding all the topology tea π
π RETURNS π
True if there is a known writable server. that's it, that's the answer β¨ no cap.
SEE ALSO: Introduction to Application Performance Monitoring β go read it, it's the companion piece, iykyk π«Ά
π§ AUTHOR π§
MongoDB, Inc β yeah, the MongoDB girlies wrote this one π
π COPYRIGHT π
2009-present, MongoDB, Inc. all rights reserved, slay π
and that's the whole page bestie, you ate that π remember: 2.5.6, dated Oct 09, 2026 β that's the version and the date, mwah π catch you in the next man page ππ
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms