MXS-1621: Detect TABLE_MAP ↔ TABLE_CREATE column count mismatch

If the TABLE_MAP and TABLE_CREATE have different column counts, an error
is logged and the row events are skipped.
This commit is contained in:
Markus Mäkelä
2018-01-25 16:37:49 +02:00
parent c000b3186c
commit b7e475f316
2 changed files with 10 additions and 2 deletions

View File

@ -649,6 +649,7 @@ size_t unpack_numeric_field(uint8_t *src, uint8_t type, uint8_t *metadata, uint8
break;
}
ss_dassert(size > 0);
memcpy(dest, src, size);
return size;
}