For the complete documentation index, see llms.txt. This page is also available as Markdown.

mariadb_rpl_close()

Closes a binary log stream and releases all resources associated with the replication handle.

Syntax

#include <mariadb_rpl.h>

void mariadb_rpl_close(MARIADB_RPL *rpl);

Parameters

Parameter
Description

rpl

A replication handle previously allocated by mariadb_rpl_init() and and connected using mariadb_rpl_open()

Notes

This function closes the replication stream and frees the MARIADB_RPL handle, but does not close the underlying database connection. To close the connection, call mysql_close() separately after mariadb_rpl_close().

History

Added in MariaDB Connector/C 3.1.0.

See Also

This page is: Copyright © 2026 MariaDB. All rights reserved.

Last updated

Was this helpful?