MySQL 9.1.0
Source Code Documentation
plugin_registry_service.cc File Reference

Functions

const mysql_service_registry_tmysql_plugin_registry_acquire ()
 Returns a new reference to the "registry" service. More...
 
int mysql_plugin_registry_release (const mysql_service_registry_t *reg)
 Releases a registry service reference. More...
 

Function Documentation

◆ mysql_plugin_registry_acquire()

const mysql_service_registry_t * mysql_plugin_registry_acquire ( )

Returns a new reference to the "registry" service.

Implementation of plugin_registry_service_st::mysql_plugin_registry_acquire_func

Uses the global registry instance to search for the default implementation of the "registry" service by calling mysql_service_registry_t::acquire().

The reference must be released through calling mysql_plugin_registry_release() to avoid resource leaks.

Returns
The newly acquired registry service pointer.
Return values
NULLerror. mysql_service_registry_t::acquire() failed.

See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::acquire()

◆ mysql_plugin_registry_release()

int mysql_plugin_registry_release ( const mysql_service_registry_t reg)

Releases a registry service reference.

Implementation of plugin_registry_service_st::mysql_plugin_registry_release_func

Uses the global registry instance to release a service reference to the "registry" service passed as a parameter by calling mysql_service_registry_t::release() This is the reverse of mysql_plugin_registry_acquire().

Parameters
regthe registry service handle to release
Returns
the result of mysql_service_registry_t::release()
Return values
0Success
non-zeroFailure

See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::release()