We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c56142 commit 8c89e84Copy full SHA for 8c89e84
sql/sql_class.cc
@@ -2361,10 +2361,6 @@ void THD::cleanup_after_query()
2361
rgi_slave->cleanup_after_query();
2362
#endif
2363
2364
-#ifdef WITH_WSREP
2365
- wsrep_free_status(this);
2366
-#endif /* WITH_WSREP */
2367
-
2368
DBUG_VOID_RETURN;
2369
}
2370
sql/wsrep_var.cc
@@ -567,6 +567,11 @@ static void export_wsrep_status_to_mysql(THD* thd)
567
{
568
int wsrep_status_len, i;
569
570
+ if (thd->wsrep_status_vars)
571
+ {
572
+ wsrep->stats_free(wsrep, thd->wsrep_status_vars);
573
+ }
574
+
575
thd->wsrep_status_vars = wsrep->stats_get(wsrep);
576
577
if (!thd->wsrep_status_vars) {
0 commit comments