Commit a8c96ce
Nisha Gopalakrishnan
Bug#36234681: InnoDB: Failing assertion: result != FTS_INVALID
ANALYSIS
DELETE operation on a table with self referential foreign key
constraint and full text index may trigger an assert.
When performing the DELETE operation, marking of deletion of the
full text row happens twice due to the self referential foreign
key constraint. Hence the state of the row becomes invalid and
the assert is triggered.
Fix
Avoid updating the full text index if the foreign key has self
referential constraint.
Change-Id: I0c018b63f259b7b1c89c10de8e560d34a63bbd0c1 parent 1eaeaa7 commit a8c96ce
File tree
3 files changed
+37
-30
lines changed- storage/innobase
- dict
- include
- row
3 files changed
+37
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
875 | 897 | | |
876 | 898 | | |
877 | 899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
1701 | 1710 | | |
1702 | 1711 | | |
1703 | 1712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | 596 | | |
605 | 597 | | |
606 | 598 | | |
| |||
986 | 978 | | |
987 | 979 | | |
988 | 980 | | |
989 | | - | |
990 | 981 | | |
991 | 982 | | |
992 | 983 | | |
| |||
1191 | 1182 | | |
1192 | 1183 | | |
1193 | 1184 | | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | 1185 | | |
1202 | 1186 | | |
1203 | | - | |
| 1187 | + | |
1204 | 1188 | | |
1205 | 1189 | | |
1206 | 1190 | | |
| |||
1215 | 1199 | | |
1216 | 1200 | | |
1217 | 1201 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
| 1202 | + | |
1228 | 1203 | | |
1229 | 1204 | | |
1230 | 1205 | | |
1231 | 1206 | | |
1232 | 1207 | | |
| 1208 | + | |
1233 | 1209 | | |
1234 | 1210 | | |
1235 | 1211 | | |
1236 | 1212 | | |
1237 | | - | |
| 1213 | + | |
1238 | 1214 | | |
1239 | 1215 | | |
1240 | 1216 | | |
| |||
1271 | 1247 | | |
1272 | 1248 | | |
1273 | 1249 | | |
1274 | | - | |
| 1250 | + | |
1275 | 1251 | | |
1276 | 1252 | | |
1277 | 1253 | | |
| |||
0 commit comments