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 72c6af8 commit d1374c5Copy full SHA for d1374c5
storage/innobase/trx/trx0trx.cc
@@ -1457,16 +1457,15 @@ trx_start_low(
1457
1458
if (trx->mysql_thd != NULL) {
1459
trx->start_time = thd_start_time_in_secs(trx->mysql_thd);
1460
+ trx->start_time_micro = thd_query_start_micro(trx->mysql_thd);
1461
+
1462
} else {
1463
trx->start_time = ut_time();
1464
+ trx->start_time_micro = 0;
1465
}
- trx->start_time_micro = clock();
1466
1467
ut_a(trx->error_state == DB_SUCCESS);
1468
- trx->start_time_micro =
- trx->mysql_thd ? thd_query_start_micro(trx->mysql_thd) : 0;
1469
-
1470
MONITOR_INC(MONITOR_TRX_ACTIVE);
1471
1472
0 commit comments