Commit f3fd244
committed
BUG#26042764: BACKPORT BUG#25642343 AND BUG#24311527 TO 5.7
BUG#24311527: PLUGIN-LOAD FAILS AFTER MYSQLD --INITIALIZE BUG#25642343: THE SERVER SHOULD HAVE A DEFAULT USER FOR THE SERVER SESION SERVICE There were two leaks after the above patch was introduced: 1) There was a possible memory leak on method Session_plugin_thread::terminate_session_thread(), on which the terminate event could be queued after the thread handler being already terminated. This would cause the terminate event memory not to be released. In order to prevent that, the Session_plugin_thread::terminate_session_thread ensures that when it ends all queued events are released. 2) When the Group Replication was not able to contact the server core through the SQL API, some memory structures were not being released. Now that memory structures are properly released.1 parent ac4b621 commit f3fd244
File tree
2 files changed
+21
-13
lines changed- rapid/plugin/group_replication/src
- sql_service
2 files changed
+21
-13
lines changedLines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
151 | 163 | | |
152 | 164 | | |
153 | 165 | | |
| |||
158 | 170 | | |
159 | 171 | | |
160 | 172 | | |
161 | | - | |
| 173 | + | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
643 | 650 | | |
644 | 651 | | |
645 | 652 | | |
| |||
0 commit comments