MXS-1621: Skip unneeded ALTER TABLE operations

Some ALTER TABLE operations (e.g. ADD INDEX) are not useful to the
avrorouter. These need to be detected and skipped.
This commit is contained in:
Markus Mäkelä
2018-01-29 14:05:52 +02:00
parent e14710ab2b
commit 93923acafb
3 changed files with 82 additions and 5 deletions

View File

@ -337,9 +337,9 @@ bool handle_row_event(AVRO_INSTANCE *router, REP_HEADER *hdr, uint8_t *ptr)
}
else if (ncolumns == map->columns && create->columns != map->columns)
{
MXS_ERROR("Table map event has a different column "
"count for table %s.%s than the CREATE TABLE statement.",
map->database, map->table);
MXS_ERROR("Table map event has a different column count for table "
"%s.%s than the CREATE TABLE statement. Possible "
"unsupported DDL detected.", map->database, map->table);
}
else
{