Merge lp:~akopytov/percona-xtrabackup/bug1166888-2.1 into lp:percona-xtrabackup/2.1
Proposed by
Alexey Kopytov
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Alexey Kopytov | ||||
Approved revision: | 535 | ||||
Merged at revision: | 540 | ||||
Proposed branch: | lp:~akopytov/percona-xtrabackup/bug1166888-2.1 | ||||
Merge into: | lp:percona-xtrabackup/2.1 | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp:~akopytov/percona-xtrabackup/bug1166888-2.1 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Laurynas Biveinis (community) | Needs Fixing | ||
Review via email:
|
Description of the change
Bug #1166888: XtraBackup segfaults after period of time
The problem was that that the log copying thread did not call
my_thread_init() which resulted in a crash as soon as any mysys function
tried to access my_thread_var.
Fixed by calling my_thread_init() and my_thread_end() when necessary.
http://
To post a comment you must log in.
This results in double my_thread_init() call:
log_copying_thread( _((unused) ))
void* arg __attribute_
{
ulint counter = 0;
/*
Initialize mysys thread-specific memory so we can
use mysys functions in this thread.
*/
my_thread_init();
ut_a(dst_log_file != NULL);
/*
Initialize mysys thread-specific memory so we can
use mysys functions in this thread.
*/
my_thread_init();
Also it's not an automerge, but just a merge.