mariadb_rpl_close(3)
π 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 bymariadb_rpl_init(3)and then connected bymariadb_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
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms