@@ -7563,7 +7563,13 @@ ha_innobase::write_row(
7563
7563
7564
7564
ha_statistic_increment(&SSV::ha_write_count);
7565
7565
7566
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
7566
+ if (share->ib_table != prebuilt->table) {
7567
+ fprintf(stderr,
7568
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
7569
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
7570
+ }
7571
+
7572
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
7567
7573
DBUG_RETURN(HA_ERR_CRASHED);
7568
7574
}
7569
7575
@@ -7799,7 +7805,13 @@ ha_innobase::write_row(
7799
7805
func_exit:
7800
7806
innobase_active_small();
7801
7807
7802
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
7808
+ if (share->ib_table != prebuilt->table) {
7809
+ fprintf(stderr,
7810
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
7811
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
7812
+ }
7813
+
7814
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
7803
7815
DBUG_RETURN(HA_ERR_CRASHED);
7804
7816
}
7805
7817
@@ -8131,7 +8143,13 @@ ha_innobase::update_row(
8131
8143
8132
8144
ha_statistic_increment(&SSV::ha_update_count);
8133
8145
8134
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
8146
+ if (share->ib_table != prebuilt->table) {
8147
+ fprintf(stderr,
8148
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
8149
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
8150
+ }
8151
+
8152
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
8135
8153
DBUG_RETURN(HA_ERR_CRASHED);
8136
8154
}
8137
8155
@@ -8228,7 +8246,13 @@ ha_innobase::update_row(
8228
8246
8229
8247
innobase_active_small();
8230
8248
8231
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
8249
+ if (share->ib_table != prebuilt->table) {
8250
+ fprintf(stderr,
8251
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
8252
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
8253
+ }
8254
+
8255
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
8232
8256
DBUG_RETURN(HA_ERR_CRASHED);
8233
8257
}
8234
8258
@@ -11097,7 +11121,13 @@ ha_innobase::truncate()
11097
11121
11098
11122
update_thd(ha_thd());
11099
11123
11100
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
11124
+ if (share->ib_table != prebuilt->table) {
11125
+ fprintf(stderr,
11126
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
11127
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
11128
+ }
11129
+
11130
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
11101
11131
DBUG_RETURN(HA_ERR_CRASHED);
11102
11132
}
11103
11133
@@ -11112,7 +11142,13 @@ ha_innobase::truncate()
11112
11142
11113
11143
err = row_truncate_table_for_mysql(prebuilt->table, prebuilt->trx);
11114
11144
11115
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
11145
+ if (share->ib_table != prebuilt->table) {
11146
+ fprintf(stderr,
11147
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
11148
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
11149
+ }
11150
+
11151
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
11116
11152
DBUG_RETURN(HA_ERR_CRASHED);
11117
11153
}
11118
11154
@@ -12407,7 +12443,13 @@ ha_innobase::analyze(
12407
12443
{
12408
12444
int ret;
12409
12445
12410
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
12446
+ if (share->ib_table != prebuilt->table) {
12447
+ fprintf(stderr,
12448
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
12449
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
12450
+ }
12451
+
12452
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
12411
12453
return(HA_ADMIN_CORRUPT);
12412
12454
}
12413
12455
@@ -12417,7 +12459,13 @@ ha_innobase::analyze(
12417
12459
HA_STATUS_TIME | HA_STATUS_CONST | HA_STATUS_VARIABLE,
12418
12460
true /* this is ANALYZE */);
12419
12461
12420
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
12462
+ if (share->ib_table != prebuilt->table) {
12463
+ fprintf(stderr,
12464
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
12465
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
12466
+ }
12467
+
12468
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
12421
12469
return(HA_ADMIN_CORRUPT);
12422
12470
}
12423
12471
@@ -13585,7 +13633,13 @@ ha_innobase::transactional_table_lock(
13585
13633
13586
13634
update_thd(thd);
13587
13635
13588
- if (UNIV_UNLIKELY(share->ib_table->is_corrupt)) {
13636
+ if (share->ib_table != prebuilt->table) {
13637
+ fprintf(stderr,
13638
+ "InnoDB: Warning: share->ib_table %p prebuilt->table %p table %s is_corrupt %d.",
13639
+ share->ib_table, prebuilt->table, prebuilt->table->name, prebuilt->table->is_corrupt);
13640
+ }
13641
+
13642
+ if (UNIV_UNLIKELY(share->ib_table && share->ib_table->is_corrupt)) {
13589
13643
DBUG_RETURN(HA_ERR_CRASHED);
13590
13644
}
13591
13645
0 commit comments