mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Bug #12612184 BLOB debug code cleanup:
Refactor the !rec_offs_any_extern relaxation in row_build(). trx_assert_active(trx_id): Assert that the given transaction is active. (In the 5.1 built-in InnoDB, there is no trx->is_recovered field.) trx_assert_recovered(trx_id): Assert that the given transaction is active and has been recovered after a crash. row_build(): Replace a bunch of code with an assertion that invokes trx_assert_active() or trx_assert_recovered() and row_get_rec_trx_id(). row_get_trx_id_offset(): Make the function inlined. Remove the unused parameter rec, and make all parameters const. row_get_rec_trx_id(), row_get_rec_roll_ptr(): Make all parameters const. rb:691 approved by Jimmy Yang
This commit is contained in:
parent
0c54d44fef
commit
0f37ccb30f
9 changed files with 146 additions and 110 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*****************************************************************************
|
||||
|
||||
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
|
||||
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free Software
|
||||
|
|
@ -171,7 +171,7 @@ row_upd_rec_sys_fields(
|
|||
ulint offset = index->trx_id_offset;
|
||||
|
||||
if (!offset) {
|
||||
offset = row_get_trx_id_offset(rec, index, offsets);
|
||||
offset = row_get_trx_id_offset(index, offsets);
|
||||
}
|
||||
|
||||
#if DATA_TRX_ID + 1 != DATA_ROLL_PTR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue