Skip to main content
Common Reference

trepctl flush

On a primary, the trepctl flush command synchronizes the database with the transaction history log, flushing the in memory queue to the THL file on disk. The operation is not supported on a replica.

Usage
trepctl [ common-options ] flush [ options ]

Where:

OptionDescriptionVersion
-limitThe period to wait (in seconds) before returning after the flush request. If not set, or set to 0 (zero) the time will be unlimited.

Internally, the operation works by inserting a heartbeat event into the queue, and then confirming when the heartbeat event has been committed to disk.

To flush the replicator:

shell> trepctl flush
Master log is synchronized with database at log sequence number: 3622

The flush operation is always initiated, and by default the trepctl will wait until the operation completes.

Using the -limit option, the amount of time the command-line waits before returning can be specified as follows:

shell> trepctl flush -limit 1