File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3928,7 +3928,7 @@ row_import_for_mysql(
3928
3928
3929
3929
DBUG_EXECUTE_IF (" ib_import_reset_space_and_lsn_failure" ,
3930
3930
err = DB_TOO_MANY_CONCURRENT_TRXS;);
3931
-
3931
+ # ifdef BTR_CUR_HASH_ADAPT
3932
3932
/* On DISCARD TABLESPACE, we did not drop any adaptive hash
3933
3933
index entries. If we replaced the discarded tablespace with a
3934
3934
smaller one here, there could still be some adaptive hash
@@ -3945,6 +3945,7 @@ row_import_for_mysql(
3945
3945
break ;
3946
3946
}
3947
3947
}
3948
+ #endif /* BTR_CUR_HASH_ADAPT */
3948
3949
3949
3950
if (err != DB_SUCCESS) {
3950
3951
char table_name[MAX_FULL_NAME_LEN + 1 ];
Original file line number Diff line number Diff line change @@ -3433,6 +3433,7 @@ row_drop_table_for_mysql(
3433
3433
3434
3434
if (!dict_table_is_temporary (table)) {
3435
3435
if (table->space != TRX_SYS_SPACE) {
3436
+ #ifdef BTR_CUR_HASH_ADAPT
3436
3437
/* On DISCARD TABLESPACE, we would not drop the
3437
3438
adaptive hash index entries. If the tablespace is
3438
3439
missing here, delete-marking the record in SYS_INDEXES
@@ -3454,6 +3455,7 @@ row_drop_table_for_mysql(
3454
3455
goto funct_exit;
3455
3456
}
3456
3457
}
3458
+ #endif /* BTR_CUR_HASH_ADAPT */
3457
3459
3458
3460
/* Delete the link file if used. */
3459
3461
if (DICT_TF_HAS_DATA_DIR (table->flags )) {
You can’t perform that action at this time.
0 commit comments