MONGOC_TRANSAC...COMMIT_TIME_MS(3)

okay bestie, this is the MONGOC_TRANSAC...COMMIT_TIME_MS(3) page from libmongoc, and it’s giving “tiny setter function with a very long name” energy. No cap, it’s here to help you set the transaction’s max commit time. 💅

✨ SYNOPSIS ✨

void
mongoc_transaction_opts_set_max_commit_time_ms (mongoc_transaction_opt_t *opts,
                                                int64_t max_commit_time_ms);

Configure the transaction’s max commit time, in milliseconds. Literally that. You hand it your transaction opts and the max commit time value, and it handles the setting. slay. 🫶

🎀 PARAMETERS 🎀

  • opts — a mongoc_transaction_opt_t. This is the transaction options object you’re passing in.
  • int64_t — the timeout for commitTransaction, in milliseconds. (The original bullet labels it int64_t; the synopsis calls the actual parameter max_commit_time_ms, iykyk.) 🔥

👑 AUTHOR 👑

MongoDB, Inc — iconic behavior, honestly.

Copyright 2009-present, MongoDB, Inc. Legal main character energy, protect it. 💖


and that’s the whole page, bestie — libmongoc source/version 2.5.6, date Oct 09, 202 as it shows up in the footer, mwah 🎀✨

📦 where this page comes from