Browse Source

mariabackup: Properly call os_thread_exit() with detach=true

There is no call to os_thread_join(), so we should detach the thread
handles in order to avoid any resource leaks.
pull/470/head
Marko Mäkelä 8 years ago
parent
commit
9ee840cd0a
  1. 6
      extra/mariabackup/xtrabackup.cc

6
extra/mariabackup/xtrabackup.cc

@ -2460,7 +2460,7 @@ static os_thread_ret_t log_copying_thread(void*)
log_copying_running = false;
my_thread_end();
os_thread_exit(NULL);
os_thread_exit();
return(0);
}
@ -2483,7 +2483,7 @@ static os_thread_ret_t io_watching_thread(void*)
io_watching_thread_running = false;
os_thread_exit(NULL);
os_thread_exit();
return(0);
}
@ -2523,7 +2523,7 @@ data_copy_thread_func(
pthread_mutex_unlock(&ctxt->count_mutex);
my_thread_end();
os_thread_exit(NULL);
os_thread_exit();
OS_THREAD_DUMMY_RETURN;
}

Loading…
Cancel
Save