From 44cd6f22d4fdf7df8da6bb00caf6493f715854bc Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 20 May 2015 11:36:26 +0200 Subject: [PATCH] MDEV-7921: main.sp_sync fails in buildbot with valgrind Part 2: detauch service thread. --- storage/maria/ma_checkpoint.c | 1 + 1 file changed, 1 insertion(+) 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);