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

2009-present, MongoDB, Inc.


from libmongoc version 2.5.6, dated Oct 09, 202 — mwah, bestie 💋✨

📦 where this page comes from