File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ A golang CLI utility to generate vtctlclient commands to add vreplication
22rules:
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
88E.g.:
@@ -30,3 +30,14 @@ you want `vreplgen` to generate, e.g.:
3030```
3131export 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments