mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 10:56:12 +01:00 
			
		
		
		
	 1ff476b415
			
		
	
	
	1ff476b415
	
	
	
		
			
			with C/C. The patch introduces mariadb_capi_rename.h which is included into mysql.h. The hew header contains macro definitions for the names being renamed. In versions 10.6+(i.e. where sql service exists) the renaming condition in the mariadb_capi_rename.h should be added with && !defined(MYSQL_DYNAMIC_PLUGIN) and look like The patch also contains removal of mysql.h from the api check. Disabling false_duper-6543 test for embedded. ha_federated.so uses C API. C API functions are being renamed in the server, but not renamed in embedded, since embedded server library should have proper C API, as expected by programs using it. Thus the same ha_federated.so cannot work both for server and embedded server library. As all federated tests are already disabled for embedded, federated isn't supposed to work for embedded anyway, and thus the test is being disabled.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			532 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			532 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| source include/not_embedded.inc;
 | |
| #
 | |
| #    MDEV-6543 Crash if enable 'federatedx' when 'federated' plugin already enabled, and vice-versa
 | |
| #
 | |
| if(!$HA_FEDERATED_SO) {
 | |
|   skip Needs ha_federated.so;
 | |
| }
 | |
| if(!$HA_FEDERATEDX_SO) {
 | |
|   skip Needs ha_federatedx.so;
 | |
| }
 | |
| 
 | |
| install soname 'ha_federated';
 | |
| # note: no error below! install soname ignores already loaded plugins
 | |
| install soname 'ha_federated';
 | |
| # note: an error here, even though plugin name is the same!
 | |
| --error ER_UDF_EXISTS
 | |
| install soname 'ha_federatedx';
 | |
| uninstall soname 'ha_federated';
 | |
| 
 |