[MDEV-26535] Option '--log-tc' requires an argument Created: 2021-09-04 Updated: 2021-09-06 Resolved: 2021-09-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
https://mariadb.com/kb/en/mysqld-options/#-log-tc states:
This is not correct:
|
| Comments |
| Comment by Roel Van de Paar [ 2021-09-04 ] |
|
Also minor typo in "From MariaDB 10.4.5, the above is included the default." on https://mariadb.com/kb/en/spider-storage-engine-overview/ |
| Comment by Sergei Golubchik [ 2021-09-04 ] |
|
This is correct. "Default value" means that if you don't specify --log-tc, the transaction coordinator log name will be "tc.log" |
| Comment by Roel Van de Paar [ 2021-09-06 ] |
|
serg Thanks. At what point is tc.log created? Starting with and without the option (--log-tc=tc.log) does not create tc.log. |
| Comment by Sergei Golubchik [ 2021-09-06 ] |
|
https://mariadb.com/kb/en/xa-transactions/#transaction-coordinator-log
so, you need "two or more XA-capable storage engines enabled" and you need to disable a binary log |
| Comment by Roel Van de Paar [ 2021-09-06 ] |
|
serg Thank you! I had seen this before but did not make the connection between this and the file being created or not. Got it now and it works. Further question; starting server with --plugin-load=ha_spider.so and --log-bin (with or without --log-tc=tc.log) does not create tc.log (as expected), however XA is still enabled for both InnoDB and Spider. Should this be impossible? Also it looks like using --plugin-load=ha_spider.so sporadically hangs mysqld. Will log a separate bug for this. |
| Comment by Sergei Golubchik [ 2021-09-06 ] |
|
I just wrote it, If the binary log is enabled on a server, then the server will use the binary log-based transaction coordinator log XA works either way, binlog or not. logging file name can differ. |
| Comment by Roel Van de Paar [ 2021-09-06 ] |
|
Note to self; don't skim read. All clear now. Thank you |