This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Commit f82cea1
committed
BUG#34045080 Failure with the THD::mem_cnt pointer
Post merge fix, to relax an assert.
Thd_mem_cnt::enable() no longer require that THD
is associated with some performance schema instrumentation,
because this can in fact not be enforced:
the THD <--> performance_schema thread instrumentation
can change over time, so testing that a performance schema
thread instrumentation actually exists when Thd_mem_cnt::enable()
is called goes not give any guarantees about the existence
of a thread instrumentation when Thd_mem_cnt::alloc_cnt()
is called.
This fix relaxes the asserts in Thd_mem_cnt::alloc_cnt(),
because there is no guarantee that a performance schema
thread instrumentation is in place for the THD used.
This is especially important for replication,
when a replication thread A can pick up a different session B
and operate on B on its behalf, see Thd_backup_and_restore()
Approved by: Tor Didriksen <tor.didriksen@oracle.com>1 parent d10ce8f commit f82cea1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments