Commit 7fe906a
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.
NOTE: This is a 5.7 patch
Change-Id: I96d32937e8f50ecb580f3084c9fccd423408575d1 parent 0fe52ea commit 7fe906a
File tree
3 files changed
+42
-37
lines changed- storage/innobase
- dict
- include
- row
3 files changed
+42
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1131 | 1157 | | |
1132 | 1158 | | |
1133 | 1159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1096 | 1104 | | |
1097 | 1105 | | |
1098 | 1106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | 663 | | |
674 | 664 | | |
675 | 665 | | |
| |||
1117 | 1107 | | |
1118 | 1108 | | |
1119 | 1109 | | |
1120 | | - | |
1121 | 1110 | | |
1122 | 1111 | | |
1123 | 1112 | | |
| |||
1348 | 1337 | | |
1349 | 1338 | | |
1350 | 1339 | | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | 1340 | | |
1360 | 1341 | | |
1361 | | - | |
| 1342 | + | |
1362 | 1343 | | |
1363 | 1344 | | |
1364 | 1345 | | |
| |||
1375 | 1356 | | |
1376 | 1357 | | |
1377 | 1358 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
| 1359 | + | |
1390 | 1360 | | |
1391 | 1361 | | |
1392 | 1362 | | |
1393 | 1363 | | |
1394 | 1364 | | |
1395 | 1365 | | |
| 1366 | + | |
1396 | 1367 | | |
1397 | 1368 | | |
1398 | 1369 | | |
1399 | 1370 | | |
1400 | 1371 | | |
1401 | 1372 | | |
1402 | | - | |
| 1373 | + | |
1403 | 1374 | | |
1404 | 1375 | | |
1405 | 1376 | | |
| |||
1440 | 1411 | | |
1441 | 1412 | | |
1442 | 1413 | | |
1443 | | - | |
| 1414 | + | |
1444 | 1415 | | |
1445 | 1416 | | |
1446 | 1417 | | |
| |||
0 commit comments