File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2167,7 +2167,7 @@ row_ins_scan_sec_index_for_duplicate(
21672167bool s_latch,/* !< in: whether index->lock is being held */
21682168mtr_t * mtr,/* !< in/out: mini-transaction */
21692169mem_heap_t * offsets_heap,
2170- trx_t * trx = 0 )
2170+ trx_t * trx)
21712171/* !< in/out: memory heap that can be emptied */
21722172{
21732173ulint n_unique;
@@ -2179,13 +2179,8 @@ row_ins_scan_sec_index_for_duplicate(
21792179ulint* offsets = NULL ;
21802180DBUG_ENTER (" row_ins_scan_sec_index_for_duplicate" );
21812181
2182-
2183- ut_ad (thr || (trx && flags & BTR_NO_LOCKING_FLAG));
2184- if (!trx)
2185- trx = thr_get_trx (thr);
2186-
21872182ut_ad (s_latch == rw_lock_own_flagged (
2188- &index->lock , RW_LOCK_FLAG_S | RW_LOCK_FLAG_SX));
2183+ &index->lock , RW_LOCK_FLAG_S | RW_LOCK_FLAG_SX));
21892184
21902185n_unique = dict_index_get_n_unique (index);
21912186
@@ -3016,7 +3011,8 @@ row_ins_sec_index_entry_low(
30163011
30173012cursor.thr = thr;
30183013cursor.rtr_info = NULL ;
3019- ut_ad (trx && trx->id != 0 || thr_get_trx (thr)->id != 0 );
3014+ ut_ad (trx);
3015+ ut_ad (trx->id != 0 );
30203016
30213017mtr_start (&mtr);
30223018mtr.set_named_space (index->space );
You can’t perform that action at this time.
0 commit comments