Skip to content

Commit 63620ca

Browse files
committed
thr_create_utime is uninitialised at this point. All 4 calls
to wsrep_init_thd_for_schema occur after a new THD so it requires to initialize create time.
1 parent 59af68e commit 63620ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sql/wsrep_schema.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,8 @@ static void wsrep_init_thd_for_schema(THD *thd)
719719
{
720720
thd->security_ctx->skip_grants();
721721
thd->system_thread= SYSTEM_THREAD_GENERIC;
722-
723722
thd->real_id=pthread_self(); // Keep purify happy
724-
725-
thd->prior_thr_create_utime= thd->start_utime= thd->thr_create_utime;
726-
723+
thd->prior_thr_create_utime= thd->start_utime= microsecond_interval_timer();
727724
/* No Galera replication */
728725
thd->variables.wsrep_on= 0;
729726
/* No binlogging */

0 commit comments

Comments
 (0)