From b5d1e10786779be1dc1adb3c1641854b9113d736 Mon Sep 17 00:00:00 2001 From: Jacques Grove Date: Thu, 24 Oct 2019 21:14:53 -0700 Subject: [PATCH] Update docs for -on_ddl flag --- vreplgen/README.md | 13 ++++++++++++- vreplgen/vreplgen.go | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/vreplgen/README.md b/vreplgen/README.md index 7d9d765..eb800af 100644 --- a/vreplgen/README.md +++ b/vreplgen/README.md @@ -2,7 +2,7 @@ A golang CLI utility to generate vtctlclient commands to add vreplication rules: ``` -Usage: ./vreplgen 'filter1' [ 'filter2']... +Usage: vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] 'filter1' [ 'filter2']... ``` E.g.: @@ -30,3 +30,14 @@ you want `vreplgen` to generate, e.g.: ``` export VTCTLCLIENT="vtctlclient -server vtctld:15999" ``` + +Lastly, you can control the on_ddl flag using vreplgen. The default if you +do not specify the `-on_ddl` option is `ignore`, but you can specify: + + * `-on_ddl ignore` + * `-on_ddl stop` + * `-on_ddl exec` + * `-on_ddl exec_ignore` + +depending on how you want your DDL to be handled in your replication streams. +See the main vreplication documentation for more details. diff --git a/vreplgen/vreplgen.go b/vreplgen/vreplgen.go index 7bfef78..f966973 100644 --- a/vreplgen/vreplgen.go +++ b/vreplgen/vreplgen.go @@ -46,7 +46,7 @@ func main() { } if (len(os.Args) < (7+argOffset)) { - fmt.Println("Usage: /vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] 'filter1' [ 'filter2']...") + fmt.Println("Usage: vreplgen [-on_ddl (ignore|stop|exec|exec_ignore)] 'filter1' [ 'filter2']...") os.Exit(1) }