Merge lp:~akopytov/percona-server/bug1131187-5.6 into lp:percona-server/5.6
Proposed by
Alexey Kopytov
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 354 |
Proposed branch: | lp:~akopytov/percona-server/bug1131187-5.6 |
Merge into: | lp:percona-server/5.6 |
Diff against target: |
424 lines (+113/-73) 7 files modified
Percona-Server/storage/innobase/include/read0read.h (+17/-4) Percona-Server/storage/innobase/include/trx0purge.h (+4/-0) Percona-Server/storage/innobase/include/trx0trx.h (+1/-3) Percona-Server/storage/innobase/read/read0read.cc (+79/-51) Percona-Server/storage/innobase/row/row0sel.cc (+1/-1) Percona-Server/storage/innobase/trx/trx0purge.cc (+7/-2) Percona-Server/storage/innobase/trx/trx0trx.cc (+4/-12) |
To merge this branch: | bzr merge lp:~akopytov/percona-server/bug1131187-5.6 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+165452@code.launchpad.net |
Description of the change
Manual merge of the fix for bug #1131187 "Remove malloc() from
read_
This patch also incorporates the fix for #1170103 "Memory leak @
read_
GA"
http://
To post a comment you must log in.
Everything is OK. Just one follow-up question:
- Upstream read_view_ create_ low() allocates the read view and its
trx_ids in a single allocation. After the fix we are back to
two allocations. It is possible to have a single allocation
for us too, but I'm not sure whether it's worth it: on one
hand, it's a single ut_realloc() anyway when trx_ids grows, on
the other, reallocating the whole view would improve access
locality and saves one memcpy() in read_view_clone(). Shall we
open a bug for this or there is no benefit?