Property changes on: trunk/tools/trainwreck/fnv.h |
___________________________________________________________________ |
Added: svn:keywords |
1 | 1 | + Id Revision |
Property changes on: trunk/tools/trainwreck/hash_32a.c |
___________________________________________________________________ |
Added: svn:keywords |
2 | 2 | + Id Revision |
Property changes on: trunk/tools/trainwreck/status.h |
___________________________________________________________________ |
Added: svn:keywords |
3 | 3 | + Id Revision |
Index: trunk/tools/trainwreck/trainwreck.c |
— | — | @@ -304,6 +304,9 @@ |
305 | 305 | if (line[n] == '\n') |
306 | 306 | line[n] = '\0'; |
307 | 307 | |
| 308 | + if (*line == '#') |
| 309 | + continue; |
| 310 | + |
308 | 311 | opt = line; |
309 | 312 | if ((value = strchr(opt, ' ')) == NULL) { |
310 | 313 | (void) fprintf(stderr, "syntax error in configuration file \"%s\"\n", |
Index: trunk/tools/trainwreck/trainwreck.conf.sample |
— | — | @@ -0,0 +1,46 @@ |
| 2 | +# $Id$ |
| 3 | +# |
| 4 | +# This is the trainwreck configuration file. It defines the master and slave |
| 5 | +# servers and some miscellaneous options. |
| 6 | + |
| 7 | +# Host or IP of the master server. |
| 8 | +master-host 127.0.0.1 |
| 9 | + |
| 10 | +# Username/password to connect to master as. Needs REPLICATION CLIENT |
| 11 | +# privilege. |
| 12 | +master-user repl |
| 13 | +master-pass whatever |
| 14 | +# Optional |
| 15 | +master-port 3306 |
| 16 | + |
| 17 | +# Slave connection. Should probably have ALL PRIVILEGES on databases being |
| 18 | +# replicated. |
| 19 | +slave-host localhost |
| 20 | +slave-user dbsyncer |
| 21 | +slave-pass whatever |
| 22 | +slave-port 3306 |
| 23 | + |
| 24 | +# For multi-writer replication: number of concurrent writers to use. Incoming |
| 25 | +# transactions from the master will be split between them to improve speed. |
| 26 | +# |
| 27 | +# WARNING: THIS DOES NOT WORK YET. Set it to 1 unless you're testing, or you |
| 28 | +# risk replication state getting out of sync, corrupting your database. |
| 29 | +nwriters 1 |
| 30 | + |
| 31 | +# Number of binlog events to buffer in memory. Too small values will stall |
| 32 | +# waiting for master events; too large values will use excessive memory. This |
| 33 | +# is per-writer - nwriters=2 and max-buffer=1024 gives 2048 buffer entries. |
| 34 | +max-buffer 8192 |
| 35 | + |
| 36 | +# Only replicate these database. Should be an anchored POSIX Extended regular |
| 37 | +# expression. |
| 38 | +only-replicate ^.*wiki(books)?$ |
| 39 | + |
| 40 | +# Don't replicate these databases. Should be an anchored POSIX Extended |
| 41 | +# regular expression. This is applied after only-replicate. |
| 42 | +ignore-database ^commonswiki$ |
| 43 | + |
| 44 | +# Ignore this error when executing a query on slaves. Can be set multiple |
| 45 | +# times. Note: if you need this, it might indicate out-of-sync replication. |
| 46 | +# DO NOT set this for transient error likes 'Lock wait timeout exceeded'. |
| 47 | +ignore-errno 1061 |
Property changes on: trunk/tools/trainwreck/twctl.c |
___________________________________________________________________ |
Added: svn:keywords |
1 | 48 | + Id Revision |