This function is called by the master to set the transaction packet size.
MCO_RET mco_HA_set_trans_window_size(mco_trans_h t,
uint4 window_size);
t
READ_WRITE transaction.window_size
This function is called by the master to set the transaction packet size. With synchronous replication (default mode),
a replica does not confirm each of the master’s transactions, but a transaction packet as a whole. Thus, the larger
the window_size, the fewer confirmations the replica will send to the master. This can improve the speed
of replication, but the replica can “lag” behind the master up to window_size transactions.
It should be called from within the context of an active READ_WRITE transaction. Note: With asynchronous
replication this function has no effect.
MCO_S_OK
MCO_E_ACCESS
MCO_E_NOMEM