# mco_HA_get_async_buf_info

This function returns statistics information about usage of the asynchronous buffer.

### For an overview see page HA Applications

### Prototype

        typedef struct
        {
             mco_size_t allocated_size;
             mco_size_t used_size;
             mco_uint8  n_overflows;
        } mco_HA_async_buf_info;

        MCO_RET mco_HA_get_async_buf_info(mco_db_h db, mco_HA_async_buf_info *abi);

### Arguments

db | Connection handle to the master database
abi | Address of the output buffer

### Description

This functions provides information about usage of the asynchronous buffer:

- `allocated_size` - the size of the buffer
- `used_size` - the used part of the buffer
- `n_overflows` - counter of overflows

### Return Codes

MCO_S_OK | Successful.
MCO_E_NOT_MASTER | Not on the master.
MCO_E_HA_INCOMPATIBLE_MODES | Asynchronous mode was not enabled.