mariadb_rpl_close(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mariadb_rpl_close(3) πŸ’–

okay bestie, so this one is from the MariaDB Connector/C manual β€” page mariadb_rpl_close(3), and it's literally the shortest little cleanup ritual ever. it's giving "last one out turns off the lights." ✨


✨ NAME ✨

mariadb_rpl_close β€” closes a replication stream πŸ’…


🌸 SYNOPSIS 🌸

#include <mariadb_rpl.h>

void mariadb_rpl_close(MARIADB_RPL *rpl)

πŸ¦‹ DESCRIPTION πŸ¦‹

it closes a replication stream. that's it. that's the whole job. she's a one-task queen and she ate πŸ‘‘


πŸŽ€ PARAMETER πŸŽ€

  • rpl β€” a replication handle. and not just any handle, bestie: it's one that was initialized by mariadb_rpl_init(3) and then connected by mariadb_rpl_open(3). so if you're just grabbing a random pointer out of the void and passing it in, that's not it, that's chaos 😭

πŸ’œ NOTES πŸ’œ

okay so important psa: closing the replication stream does not close your connection to the server. those are two separate things, no cap. if you actually want the server connection gone, you gotta call the api function mariadb_close(3). don't skip that step, bestie, or your socket is just sitting there like a ghost at the party πŸ‘»

🌈 HISTORY 🌈

mariadb_rpl_close was added in MariaDB Connector/C 3.1 β€” so she's been here for a minute, an absolute veteran, iconic behavior ⭐


and that's the whole page, fr fr 🫢 that was the MariaDB Connector/C manual, Version 3.4, signing off β€” go call mariadb_close(3), hydrate, and close your streams responsibly πŸ’–πŸŒΈπŸŽ€

πŸ“¦ where this page comes from