diff --git a/storage/maria/ma_checkpoint.c b/storage/maria/ma_checkpoint.c index ce24efc7014..2268ca62875 100644 --- a/storage/maria/ma_checkpoint.c +++ b/storage/maria/ma_checkpoint.c @@ -340,6 +340,7 @@ int ma_checkpoint_init(ulong interval) { /* thread lives, will have to be killed */ checkpoint_control.status= THREAD_RUNNING; + pthread_detach(th); } } DBUG_RETURN(res);