tpm find-seqno
For convenience, a wrapper script tungsten_find_seqno is also available. In all the examples below, simply
replace tpm find-seqno with tungsten_find_seqno or vice versa.
The tpm find-seqno assists with locating event information in the THL and producing a dsctl set command
as output.
| Option | Description | Version |
|---|---|---|
--debugAliases: -d | Displays debug-level status messages. | |
--helpAliases: -h | ||
--pathAliases: -p | Pass full path to replicator executables e.g. --path /opt/replicator/tungsten/tungsten-replicator/bin | |
--quietAliases: -q | Hides status output whenever possible. | |
--serviceAliases: -s | Specify the service name to use with the various commands. | 7.0.3 |
--testAliases: -t | Test mode - do not perform the actual update on the files. | |
--thl | Path and name of thl executable (Ignores --path if also supplied) | |
--trepctl | Path and name of trepctl executable (Ignores --path if also supplied) | |
-v | Displays verbose-level status messages. | 7.0.3 |
The tpm find-seqno command performs the following steps:
- Get the Replicator sequence number to search for from the CLI and validate
- Validate paths and commands
- Load all available service names and validate any specified service against that list
- Check if this Replicator is in the primary (
master) role - Locate the supplied seqno in the available THL
- Parse the THL found, if any
- Generate the
dsctlcommand and display
Below is a sample session:
shell> tpm find-seqno 4
dsctl set -reset -seqno 4 -epoch 2 -event-id "mysql-bin.000030:0000000000001981;-1" -source-id "db1"