Skip to content

Commit b5d1e10

Browse files
committed
Update docs for -on_ddl flag
1 parent 2adeaf2 commit b5d1e10

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

vreplgen/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ A golang CLI utility to generate vtctlclient commands to add vreplication
22
rules:
33

44
```
5-
Usage: ./vreplgen <tablet_id> <src_keyspace> <src_shard> <dest_keyspace> <dest_table1> 'filter1' [<dest_table2> 'filter2']...
5+
Usage: vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] <tablet_id> <src_keyspace> <src_shard> <dest_keyspace> <dest_table1> 'filter1' [<dest_table2> 'filter2']...
66
```
77

88
E.g.:
@@ -30,3 +30,14 @@ you want `vreplgen` to generate, e.g.:
3030
```
3131
export VTCTLCLIENT="vtctlclient -server vtctld:15999"
3232
```
33+
34+
Lastly, you can control the on_ddl flag using vreplgen. The default if you
35+
do not specify the `-on_ddl` option is `ignore`, but you can specify:
36+
37+
* `-on_ddl ignore`
38+
* `-on_ddl stop`
39+
* `-on_ddl exec`
40+
* `-on_ddl exec_ignore`
41+
42+
depending on how you want your DDL to be handled in your replication streams.
43+
See the main vreplication documentation for more details.

vreplgen/vreplgen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func main() {
4646
}
4747

4848
if (len(os.Args) < (7+argOffset)) {
49-
fmt.Println("Usage: /vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] <tablet_id> <src_keyspace> <src_shard> <dest_keyspace> <dest_table1> 'filter1' [<dest_table2> 'filter2']...")
49+
fmt.Println("Usage: vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] <tablet_id> <src_keyspace> <src_shard> <dest_keyspace> <dest_table1> 'filter1' [<dest_table2> 'filter2']...")
5050
os.Exit(1)
5151
}
5252

0 commit comments

Comments
 (0)