<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="replication-functions">
      </a>
      14.18 Replication Functions
     </h2>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="group-replication-functions.html">
       14.18.1 Group Replication Functions
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="gtid-functions.html">
       14.18.2 Functions Used with Global Transaction Identifiers (GTIDs)
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="replication-functions-async-failover.html">
       14.18.3 Asynchronous Replication Channel Failover Functions
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="replication-functions-synchronization.html">
       14.18.4 Position-Based Synchronization Functions
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <a class="indexterm" name="idm46045194116896">
  </a>
  <a class="indexterm" name="idm46045194115824">
  </a>
  <p>
   The functions described in the following sections are used with
      MySQL Replication.
  </p>
  <div class="table">
   <a name="idm46045194113840">
   </a>
   <p class="title">
    <b>
     Table 14.24 Replication Functions
    </b>
   </p>
   <div class="table-contents">
    <table frame="box" rules="all" summary="A reference that lists functions used with MySQL Replication.">
     <colgroup>
      <col style="width: 25%"/>
      <col style="width: 62%"/>
      <col style="width: 12%"/>
     </colgroup>
     <thead>
      <tr>
       <th>
        Name
       </th>
       <th>
        Description
       </th>
       <th>
        Deprecated
       </th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-async-failover.html#function_asynchronous-connection-failover-add-managed">
         <code class="literal">
          asynchronous_connection_failover_add_managed()
         </code>
        </a>
       </th>
       <td>
        Add group member source server configuration information to a
      replication channel source list
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-async-failover.html#function_asynchronous-connection-failover-add-source">
         <code class="literal">
          asynchronous_connection_failover_add_source()
         </code>
        </a>
       </th>
       <td>
        Add source server configuration information server to a
      replication channel source list
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-async-failover.html#function_asynchronous-connection-failover-delete-managed">
         <code class="literal">
          asynchronous_connection_failover_delete_managed()
         </code>
        </a>
       </th>
       <td>
        Remove a managed group from a replication channel source list
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-async-failover.html#function_asynchronous-connection-failover-delete-source">
         <code class="literal">
          asynchronous_connection_failover_delete_source()
         </code>
        </a>
       </th>
       <td>
        Remove a source server from a replication channel source list
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-async-failover.html#function_asynchronous-connection-failover-reset">
         <code class="literal">
          asynchronous_connection_failover_reset()
         </code>
        </a>
       </th>
       <td>
        Remove all settings relating to group replication asynchronous
      failover
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-member-actions.html#function_group-replication-disable-member-action">
         <code class="literal">
          group_replication_disable_member_action()
         </code>
        </a>
       </th>
       <td>
        Disable member action for event specified
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-member-actions.html#function_group-replication-enable-member-action">
         <code class="literal">
          group_replication_enable_member_action()
         </code>
        </a>
       </th>
       <td>
        Enable member action for event specified
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-communication-protocol.html#function_group-replication-get-communication-protocol">
         <code class="literal">
          group_replication_get_communication_protocol()
         </code>
        </a>
       </th>
       <td>
        Get version of group replication communication protocol currently
      in use
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-maximum-consensus.html#function_group-replication-get-write-concurrency">
         <code class="literal">
          group_replication_get_write_concurrency()
         </code>
        </a>
       </th>
       <td>
        Get maximum number of consensus instances currently set for group
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-member-actions.html#function_group-replication-reset-member-actions">
         <code class="literal">
          group_replication_reset_member_actions()
         </code>
        </a>
       </th>
       <td>
        Reset all member actions to defaults and configuration version
      number to 1
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-new-primary.html#function_group-replication-set-as-primary">
         <code class="literal">
          group_replication_set_as_primary()
         </code>
        </a>
       </th>
       <td>
        Make a specific group member the primary
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-communication-protocol.html#function_group-replication-set-communication-protocol">
         <code class="literal">
          group_replication_set_communication_protocol()
         </code>
        </a>
       </th>
       <td>
        Set version for group replication communication protocol to use
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-maximum-consensus.html#function_group-replication-set-write-concurrency">
         <code class="literal">
          group_replication_set_write_concurrency()
         </code>
        </a>
       </th>
       <td>
        Set maximum number of consensus instances that can be executed in
      parallel
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-mode.html#function_group-replication-switch-to-multi-primary-mode">
         <code class="literal">
          group_replication_switch_to_multi_primary_mode()
         </code>
        </a>
       </th>
       <td>
        Changes the mode of a group running in single-primary mode to
      multi-primary mode
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="group-replication-functions-for-mode.html#function_group-replication-switch-to-single-primary-mode">
         <code class="literal">
          group_replication_switch_to_single_primary_mode()
         </code>
        </a>
       </th>
       <td>
        Changes the mode of a group running in multi-primary mode to
      single-primary mode
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-synchronization.html#function_master-pos-wait">
         <code class="literal">
          MASTER_POS_WAIT()
         </code>
        </a>
       </th>
       <td>
        Block until the replica has read and applied all updates up to the
      specified position
       </td>
       <td>
        Yes
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="replication-functions-synchronization.html#function_source-pos-wait">
         <code class="literal">
          SOURCE_POS_WAIT()
         </code>
        </a>
       </th>
       <td>
        Block until the replica has read and applied all updates up to the
      specified position
       </td>
       <td>
       </td>
      </tr>
      <tr>
       <th scope="row">
        <a class="link" href="gtid-functions.html#function_wait-for-executed-gtid-set">
         <code class="literal">
          WAIT_FOR_EXECUTED_GTID_SET()
         </code>
        </a>
       </th>
       <td>
        Wait until the given GTIDs have executed on the replica.
       </td>
       <td>
       </td>
      </tr>
     </tbody>
    </table>
   </div>
   <div class="table-contents">
    <table cellpadding="0" cellspacing="0" style="position: fixed; top: 0px; display: none; left: 401px; width: 739px;">
     <thead>
      <tr>
       <th style="width: 405.156px;">
        Name
       </th>
       <th style="width: 243.688px;">
        Description
       </th>
       <th style="width: 89.1562px;">
        Deprecated
       </th>
      </tr>
     </thead>
    </table>
   </div>
  </div>
  <br class="table-break"/>
 </div>
 <br/>
</div>
