1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix bug #53496 Use Lock_time in slow query log output for InnoDB row

lock wait time. Including the InnoDB lock time in the exiting "Lock_time"
output.
This commit is contained in:
Jimmy Yang
2010-08-17 01:19:24 -07:00
parent 524e0dc4d5
commit b17b122b7d
7 changed files with 33 additions and 1 deletions

View File

@ -307,6 +307,11 @@ void **thd_ha_data(const THD *thd, const struct handlerton *hton)
return (void **) &thd->ha_data[hton->slot].ha_ptr;
}
extern "C"
void thd_storage_lock_wait(THD *thd, long long value)
{
thd->utime_after_lock+= value;
}
/**
Provide a handler data getter to simplify coding