ha set idxauto argument: Replicate indexes to secondary servers (SQL administration API)

Use the ha set idxauto argument with the admin() or task() function to control whether indexes are automatically replicated to secondary servers.

Syntax


1  EXECUTE FUNCTION
1 admin
1 task
2  (
1 "ha set idxauto off"
1 "ha set idxauto on"
3  ) ;

Usage

Run this function on an established primary server to enable or disable automatic index replication to secondary servers.

You can run this function on any type of primary server.

This function is equivalent to the onmode -d idxauto command.

Example

The following example enables automatic index replication:
EXECUTE FUNCTION task("ha set idxauto on");