35 lines
		
	
	
		
			910 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			910 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| #ifndef _SHARDING_COMMON_HG
 | |
| #define _SHARDING_COMMON_HG
 | |
| /*
 | |
|  * Copyright (c) 2016 MariaDB Corporation Ab
 | |
|  *
 | |
|  * Use of this software is governed by the Business Source License included
 | |
|  * in the LICENSE.TXT file and at www.mariadb.com/bsl11.
 | |
|  *
 | |
|  * Change Date: 2019-07-01
 | |
|  *
 | |
|  * On the date above, in accordance with the Business Source License, use
 | |
|  * of this software will be governed by version 2 or later of the General
 | |
|  * Public License.
 | |
|  */
 | |
| 
 | |
| #include <maxscale/cdefs.h>
 | |
| #include <poll.h>
 | |
| #include <maxscale/buffer.h>
 | |
| #include <maxscale/modutil.h>
 | |
| #include <maxscale/protocol/mysql.h>
 | |
| #include <maxscale/hashtable.h>
 | |
| #include <maxscale/log_manager.h>
 | |
| #include <maxscale/query_classifier.h>
 | |
| 
 | |
| MXS_BEGIN_DECLS
 | |
| 
 | |
| bool extract_database(GWBUF* buf, char* str);
 | |
| void create_error_reply(char* fail_str, DCB* dcb);
 | |
| bool change_current_db(char* dest, HASHTABLE* dbhash, GWBUF* buf);
 | |
| 
 | |
| MXS_END_DECLS
 | |
| 
 | |
| #endif
 | 
