---
name: "mariadb_rpl_get_optionsv"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mariadb_rpl_get_optionsv"
---

# mariadb\_rpl\_get\_optionsv(3)

### Name

mariadb\_rpl\_get\_optionsv - get replication option value

### Synopsis

-

  ```
  #include <mariadb_rpl.h>
  int mariadb_rpl_get_optionsv(MARIADB_RPL *rpl, enum mariadb_rpl_option option, ...)
  ```

### Parameter

- •

  `rpl` - a replication handle which was previously allocated by mariadb\_rpl\_init

- •

  `option` - The option to be set, followed by one or more values

| | | |
| --- | --- | --- |
| Option | Type | Description |
| MARIADB\_RPL\_FILENAME | char \*\*, size\_t \* | The name and name length of binglog file |
| MARIADB\_RPL\_START | unsigned long \* | Start position |
| MARIADB\_RPL\_SERVER\_ID | uint32\_t \* | Server id |
| MARIADB\_RPL\_FLAGS | uint32\_t \* | Flags |
| MARIADB\_RPL\_SEMI\_SYNC | uint32\_t \* | Semi sync replication, 1= ON, 0= OFF. (This option was added in version 3.3.6). |

### Return value

Returns zero on success, non zero on error.

### See also

- •

  **[mariadb\_rpl\_optionsv(3)](/mariadb_rpl_optionsv/3.md)**

### History

`mariadb_rpl_get_optionsv` was added in MariaDB Connector/C 3.1.0
