MONGOC_BULKWRITERESULT_SERVERID(3)
okay so bestie, this is the MONGOC_BULKWRITERESULT_SERVERID(3) page from the libmongoc manual — yes, that manual 💅
✨ SYNOPSIS ✨
uint32_t
mongoc_bulkwriteresult_serverid (const mongoc_bulkwriteresult_t *self);
That’s the whole call — it takes a const mongoc_bulkwriteresult_t *self and hands you back a uint32_t, periodt 🎀
🌸 DESCRIPTION 🌸
So this function returns the most recently selected server 💖 That’s the main character right there.
Heads up, bestie: the returned value may differ from a serverid you previously set with mongoc_bulkwriteopts_set_serverid() if a retry occurred. It’s giving “plot twist” 😭 no cap.
A server ID of 0 indicates that no server was successfully selected. Zero means no successful server selection, so don’t ignore that little guy 🫶
This one is intended for use by wrapping drivers that select a server before running the operation — so if that’s your whole vibe, this function is literally made for you 👑
🫶 AUTHOR 🫶
MongoDB, Inc
🎀 COPYRIGHT 🎀
2009-present, MongoDB, Inc.
from libmongoc version 2.5.6, dated Oct 09, 202 — mwah, bestie 💋✨
📦 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