| Bug #47396 | Innodb accesses mysql server internal mutex LOCK_thread_count | ||
|---|---|---|---|
| Submitted: | 17 Sep 2009 7:45 | Modified: | 1 Dec 2009 12:16 |
| Reporter: | Marc ALFF | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Storage Engine API | Severity: | S1 (Critical) |
| Version: | 5.4.3 (mysql-trunk) | OS: | Any |
| Assigned to: | Assigned Account | CPU Architecture: | Any |
[17 Sep 2009 7:45]
Marc ALFF
[17 Sep 2009 11:15]
Valeriy Kravchuk
Verified by code review.
[13 Oct 2009 14:18]
Sergei Golubchik
will be fixed in WL#5134
[14 Oct 2009 7:32]
Kristofer Pettersson
Why not an 'instrument' service? s->increase_thread_count(); s->decrease_thread_count(); s->reset_thread_count(); .. s->reset_all_measurements(); .. s->tick(); .. s->tick(); .. s->aggregate_ticks(); A 'mutex' doesn't do anything. It is a building block for a layer far below the high level implementation a storage engine hooks into. It isn't efficient communication. An API should provide a help for the user to avoid making mistakes. There is no such help provided in a mutex because it can be used in very many ways. If we indeed need to intercept the pthread library we could use the same technique as we do with malloc on OpenSolaris or Linux (google version).
[1 Dec 2009 12:16]
Sergei Golubchik
will be fixed as a part of bug#38883
