mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: lock_rec_insert_check_and_lock(): Avoid casting away constness.
Use page_rec_get_next_const() instead. This silences a gcc 4.2.4 warning. Reported by Sunny Bains.
This commit is contained in:
parent
7b29049ba4
commit
3d5a174187
1 changed files with 1 additions and 1 deletions
|
@ -4926,7 +4926,7 @@ lock_rec_insert_check_and_lock(
|
|||
}
|
||||
|
||||
trx = thr_get_trx(thr);
|
||||
next_rec = page_rec_get_next((rec_t*) rec);
|
||||
next_rec = page_rec_get_next_const(rec);
|
||||
next_rec_heap_no = page_rec_get_heap_no(next_rec);
|
||||
|
||||
lock_mutex_enter_kernel();
|
||||
|
|
Loading…
Add table
Reference in a new issue