Bug #83296 Auto_releaser should own objects acquired by acquired_uncached
Submitted: 7 Oct 2016 7:13 Modified: 17 Nov 2016 13:06
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Data Dictionary Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[7 Oct 2016 7:13] Jon Olav Hauglid
Description:
This is an internal refactoring of the new DD code.

acquire_uncached() currently returns objects that the caller must remember to delete.
This is inconvenient and bug-prone. Instead the current auto releaser should own them
and delete them when the auto releaser goes out of scope.

How to repeat:
n/a
[17 Nov 2016 13:06] Daniel Price
Posted by developer:
 
Fixed as of the upcoming 8.0.1 release, and here's the changelog entry:

Data dictionary objects acquired by Dictionary_client::acquire_uncached()
are now owned by the current auto-releaser instead of the caller. Also,
acquisition of TABLE_SHARE view objects is performed by acquire() and
clone() instead of acquire_uncached().