thd_storage_lock_wait should be called on lock wait end

Description

thd_storage_lock_wait is provided for storage engines to report back to server the lock wait times. TokuDB does not call it, thus the lock wait time is accounted as query execution time in the server. This has a relatively minor effect of slow query log - whose threshold is supposed to ignore the lock wait time - to log TokuDB queries that would not be logged with e.g. InnoDB same lock wait / execution time.

Environment

None

Status

Assignee

Unassigned

Reporter

Laurynas Biveinis

Labels

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Freshdesk Tickets

None

Priority

Minor
Configure