diff options
author | unknown <marko@hundin.mysql.fi> | 2005-06-22 12:51:00 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-06-22 12:51:00 +0300 |
commit | b4268440a4cb67ecfa8155e4ee050cad07834c40 (patch) | |
tree | cb7516ffc785407083d353019836258413d5cab9 /innobase/row | |
parent | 369da8f53903634549b818a706f61e40dd31b7d4 (diff) | |
download | mariadb-git-b4268440a4cb67ecfa8155e4ee050cad07834c40.tar.gz |
InnoDB: Remove compilation warnings and errors on SGI IRIX.
innobase/row/row0ins.c:
Remove compilation warnings and errors on SGI IRIX.
Diffstat (limited to 'innobase/row')
-rw-r--r-- | innobase/row/row0ins.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/innobase/row/row0ins.c b/innobase/row/row0ins.c index 776094d0de5..bce775c25d6 100644 --- a/innobase/row/row0ins.c +++ b/innobase/row/row0ins.c @@ -533,9 +533,11 @@ row_ins_cascade_calc_update_vec( ufield->new_val.data = mem_heap_alloc(heap, min_size); - pad_start = ufield->new_val.data + pad_start = + ((char*) ufield->new_val.data) + ufield->new_val.len; - pad_end = ufield->new_val.data + pad_end = + ((char*) ufield->new_val.data) + min_size; ufield->new_val.len = min_size; ut_memcpy(ufield->new_val.data, @@ -1578,7 +1580,6 @@ row_ins_scan_sec_index_for_duplicate( ulint err = DB_SUCCESS; ibool moved; mtr_t mtr; - trx_t* trx; mem_heap_t* heap = NULL; ulint offsets_[REC_OFFS_NORMAL_SIZE]; ulint* offsets = offsets_; @@ -1618,11 +1619,6 @@ row_ins_scan_sec_index_for_duplicate( goto next_rec; } - /* Try to place a lock on the index record */ - - trx = thr_get_trx(thr); - ut_ad(trx); - offsets = rec_get_offsets(rec, index, offsets, ULINT_UNDEFINED, &heap); |