 bbfd9ce136
			
		
	
	bbfd9ce136
	
	
	
		
			
			Using the same implementation of the Backend and SessionCommand classes in both schemarouter and readwritesplit will prevent duplication of code. This commit only splits the generic parts of the class to a Backend class which the schemarouter then extends. The session commands for both routers are similar so they require no special handling.
		
			
				
	
	
		
			6 lines
		
	
	
		
			307 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			307 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| add_library(schemarouter SHARED schemarouter.cc schemarouterinstance.cc schemaroutersession.cc shard_map.cc)
 | |
| target_link_libraries(schemarouter maxscale-common MySQLCommon)
 | |
| add_dependencies(schemarouter pcre2)
 | |
| set_target_properties(schemarouter PROPERTIES VERSION "1.0.0")
 | |
| install_module(schemarouter core)
 |