This commit is contained in:
vraatikka 2013-07-26 15:25:00 +03:00
commit 80b25b6270
5 changed files with 15 additions and 802 deletions

View File

@ -37,13 +37,3 @@ IF(NOT CMAKE_INSTALL_LOCAL_ONLY)
ENDIF(NOT CMAKE_INSTALL_LOCAL_ONLY)
IF(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)
FILE(WRITE "/home/jan/skysql/skygateway/skygateway/replication_listener/examples/${CMAKE_INSTALL_MANIFEST}" "")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
FILE(APPEND "/home/jan/skysql/skygateway/skygateway/replication_listener/examples/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
ENDFOREACH(file)

View File

@ -23,6 +23,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
#include <boost/asio.hpp>
#include <list>
#include "binlog_event.h"
#include <mysql.h>
#include <my_global.h>
#include <mysql_com.h>
using boost::asio::ip::tcp;
namespace mysql {
@ -75,133 +78,6 @@ struct st_error_package
std::string message;
};
#define CLIENT_LONG_PASSWORD 1 /* new more secure passwords */
#define CLIENT_FOUND_ROWS 2 /* Found instead of affected rows */
#define CLIENT_LONG_FLAG 4 /* Get all column flags */
#define CLIENT_CONNECT_WITH_DB 8 /* One can specify db on connect */
#define CLIENT_NO_SCHEMA 16 /* Don't allow database.table.column */
#define CLIENT_COMPRESS 32 /* Can use compression protocol */
#define CLIENT_ODBC 64 /* Odbc client */
#define CLIENT_LOCAL_FILES 128 /* Can use LOAD DATA LOCAL */
#define CLIENT_IGNORE_SPACE 256 /* Ignore spaces before '(' */
#define CLIENT_PROTOCOL_41 512 /* New 4.1 protocol */
#define CLIENT_INTERACTIVE 1024 /* This is an interactive client */
#define CLIENT_SSL 2048 /* Switch to SSL after handshake */
#define CLIENT_IGNORE_SIGPIPE 4096 /* IGNORE sigpipes */
#define CLIENT_TRANSACTIONS 8192 /* Client knows about transactions */
#define CLIENT_RESERVED 16384 /* Old flag for 4.1 protocol */
#define CLIENT_SECURE_CONNECTION 32768 /* New 4.1 authentication */
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
#define CLIENT_MULTI_RESULTS (1UL << 17) /* Enable/disable multi-results */
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
/* Gather all possible capabilites (flags) supported by the server */
#define CLIENT_ALL_FLAGS (CLIENT_LONG_PASSWORD | \
CLIENT_FOUND_ROWS | \
CLIENT_LONG_FLAG | \
CLIENT_CONNECT_WITH_DB | \
CLIENT_NO_SCHEMA | \
CLIENT_COMPRESS | \
CLIENT_ODBC | \
CLIENT_LOCAL_FILES | \
CLIENT_IGNORE_SPACE | \
CLIENT_PROTOCOL_41 | \
CLIENT_INTERACTIVE | \
CLIENT_SSL | \
CLIENT_IGNORE_SIGPIPE | \
CLIENT_TRANSACTIONS | \
CLIENT_RESERVED | \
CLIENT_SECURE_CONNECTION | \
CLIENT_MULTI_STATEMENTS | \
CLIENT_MULTI_RESULTS | \
CLIENT_SSL_VERIFY_SERVER_CERT | \
CLIENT_REMEMBER_OPTIONS)
/*
Switch off the flags that are optional and depending on build flags
If any of the optional flags is supported by the build it will be switched
on before sending to the client during the connection handshake.
*/
#define CLIENT_BASIC_FLAGS (((CLIENT_ALL_FLAGS & ~CLIENT_SSL) \
& ~CLIENT_COMPRESS) \
& ~CLIENT_SSL_VERIFY_SERVER_CERT)
enum enum_server_command
{
COM_SLEEP, COM_QUIT, COM_INIT_DB, COM_QUERY, COM_FIELD_LIST,
COM_CREATE_DB, COM_DROP_DB, COM_REFRESH, COM_SHUTDOWN, COM_STATISTICS,
COM_PROCESS_INFO, COM_CONNECT, COM_PROCESS_KILL, COM_DEBUG, COM_PING,
COM_TIME, COM_DELAYED_INSERT, COM_CHANGE_USER, COM_BINLOG_DUMP,
COM_TABLE_DUMP, COM_CONNECT_OUT, COM_REGISTER_SLAVE,
COM_STMT_PREPARE, COM_STMT_EXECUTE, COM_STMT_SEND_LONG_DATA, COM_STMT_CLOSE,
COM_STMT_RESET, COM_SET_OPTION, COM_STMT_FETCH, COM_DAEMON,
COM_BINLOG_DUMP_GTID,
/* don't forget to update const char *command_name[] in sql_parse.cc */
/* Must be last */
COM_END
};
enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
MYSQL_TYPE_SHORT, MYSQL_TYPE_LONG,
MYSQL_TYPE_FLOAT, MYSQL_TYPE_DOUBLE,
MYSQL_TYPE_NULL, MYSQL_TYPE_TIMESTAMP,
MYSQL_TYPE_LONGLONG,MYSQL_TYPE_INT24,
MYSQL_TYPE_DATE, MYSQL_TYPE_TIME,
MYSQL_TYPE_DATETIME, MYSQL_TYPE_YEAR,
MYSQL_TYPE_NEWDATE, MYSQL_TYPE_VARCHAR,
MYSQL_TYPE_BIT,
MYSQL_TYPE_NEWDECIMAL=246,
MYSQL_TYPE_ENUM=247,
MYSQL_TYPE_SET=248,
MYSQL_TYPE_TINY_BLOB=249,
MYSQL_TYPE_MEDIUM_BLOB=250,
MYSQL_TYPE_LONG_BLOB=251,
MYSQL_TYPE_BLOB=252,
MYSQL_TYPE_VAR_STRING=253,
MYSQL_TYPE_STRING=254,
MYSQL_TYPE_GEOMETRY=255
};
#define int3store(T,A) do { *(T)= (unsigned char) ((A));\
*(T+1)=(unsigned char) (((unsigned int) (A) >> 8));\
*(T+2)=(unsigned char) (((A) >> 16)); } while (0)
/*
* Helper functions
*
static void proto_append_int_len(boost::asio::streambuf &buf, unsigned long long num, int len)
{
std::ostream os(&buf);
for (int i= 0; i< len; i++)
{
os << (char) (num & 0xFF);
num= num >> 8;
}
}
static void proto_append_int_len(std::ostream &os, unsigned long long num, int len)
{
for (int i= 0; i< len; i++)
{
unsigned char shift= (num >> i) & 0xFF;
os << shift;
}
}
static void proto_append_int_len(char *buff, unsigned long long num, int len)
{
for (int i= 0; i< len; i++)
{
buff[i]= (unsigned char) (num & 0xFF);
num= num >> 8;
}
}
*/
void write_packet_header(char *buff, boost::uint16_t size, boost::uint8_t packet_no);
class Protocol_validator;

View File

@ -1,663 +0,0 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/jan/skysql/skygateway/skygateway/replication_listener
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/jan/skysql/skygateway/skygateway/replication_listener
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
/usr/bin/cmake -i .
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target install
install: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/bin/cmake -P cmake_install.cmake
.PHONY : install
# Special rule for the target install
install/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/bin/cmake -P cmake_install.cmake
.PHONY : install/fast
# Special rule for the target install/local
install/local: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local
# Special rule for the target install/local
install/local/fast: install/local
.PHONY : install/local/fast
# Special rule for the target list_install_components
list_install_components:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
.PHONY : list_install_components
# Special rule for the target list_install_components
list_install_components/fast: list_install_components
.PHONY : list_install_components/fast
# Special rule for the target package
package: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool..."
cd /home/jan/skysql/skygateway/skygateway/replication_listener && /usr/bin/cpack --config ./CPackConfig.cmake
.PHONY : package
# Special rule for the target package
package/fast: package
.PHONY : package/fast
# Special rule for the target package_source
package_source:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool for source..."
cd /home/jan/skysql/skygateway/skygateway/replication_listener && /usr/bin/cpack --config ./CPackSourceConfig.cmake /home/jan/skysql/skygateway/skygateway/replication_listener/CPackSourceConfig.cmake
.PHONY : package_source
# Special rule for the target package_source
package_source/fast: package_source
.PHONY : package_source/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(CMAKE_COMMAND) -E cmake_progress_start /home/jan/skysql/skygateway/skygateway/replication_listener/CMakeFiles /home/jan/skysql/skygateway/skygateway/replication_listener/src/CMakeFiles/progress.marks
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/jan/skysql/skygateway/skygateway/replication_listener/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/preinstall
.PHONY : preinstall/fast
# clear depends
depend:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
# Convenience name for target.
src/CMakeFiles/replication_shared.dir/rule:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/CMakeFiles/replication_shared.dir/rule
.PHONY : src/CMakeFiles/replication_shared.dir/rule
# Convenience name for target.
replication_shared: src/CMakeFiles/replication_shared.dir/rule
.PHONY : replication_shared
# fast build rule for target.
replication_shared/fast:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/build
.PHONY : replication_shared/fast
# Manual pre-install relink rule for target.
replication_shared/preinstall:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/CMakeFiles/replication_shared.dir/preinstall
.PHONY : replication_shared/preinstall
# Convenience name for target.
src/CMakeFiles/replication_static.dir/rule:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f CMakeFiles/Makefile2 src/CMakeFiles/replication_static.dir/rule
.PHONY : src/CMakeFiles/replication_static.dir/rule
# Convenience name for target.
replication_static: src/CMakeFiles/replication_static.dir/rule
.PHONY : replication_static
# fast build rule for target.
replication_static/fast:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/build
.PHONY : replication_static/fast
access_method_factory.o: access_method_factory.cpp.o
.PHONY : access_method_factory.o
# target to build an object file
access_method_factory.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/access_method_factory.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/access_method_factory.cpp.o
.PHONY : access_method_factory.cpp.o
access_method_factory.i: access_method_factory.cpp.i
.PHONY : access_method_factory.i
# target to preprocess a source file
access_method_factory.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/access_method_factory.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/access_method_factory.cpp.i
.PHONY : access_method_factory.cpp.i
access_method_factory.s: access_method_factory.cpp.s
.PHONY : access_method_factory.s
# target to generate assembly for a file
access_method_factory.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/access_method_factory.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/access_method_factory.cpp.s
.PHONY : access_method_factory.cpp.s
basic_content_handler.o: basic_content_handler.cpp.o
.PHONY : basic_content_handler.o
# target to build an object file
basic_content_handler.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_content_handler.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_content_handler.cpp.o
.PHONY : basic_content_handler.cpp.o
basic_content_handler.i: basic_content_handler.cpp.i
.PHONY : basic_content_handler.i
# target to preprocess a source file
basic_content_handler.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_content_handler.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_content_handler.cpp.i
.PHONY : basic_content_handler.cpp.i
basic_content_handler.s: basic_content_handler.cpp.s
.PHONY : basic_content_handler.s
# target to generate assembly for a file
basic_content_handler.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_content_handler.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_content_handler.cpp.s
.PHONY : basic_content_handler.cpp.s
basic_transaction_parser.o: basic_transaction_parser.cpp.o
.PHONY : basic_transaction_parser.o
# target to build an object file
basic_transaction_parser.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_transaction_parser.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_transaction_parser.cpp.o
.PHONY : basic_transaction_parser.cpp.o
basic_transaction_parser.i: basic_transaction_parser.cpp.i
.PHONY : basic_transaction_parser.i
# target to preprocess a source file
basic_transaction_parser.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_transaction_parser.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_transaction_parser.cpp.i
.PHONY : basic_transaction_parser.cpp.i
basic_transaction_parser.s: basic_transaction_parser.cpp.s
.PHONY : basic_transaction_parser.s
# target to generate assembly for a file
basic_transaction_parser.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/basic_transaction_parser.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/basic_transaction_parser.cpp.s
.PHONY : basic_transaction_parser.cpp.s
binary_log.o: binary_log.cpp.o
.PHONY : binary_log.o
# target to build an object file
binary_log.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binary_log.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binary_log.cpp.o
.PHONY : binary_log.cpp.o
binary_log.i: binary_log.cpp.i
.PHONY : binary_log.i
# target to preprocess a source file
binary_log.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binary_log.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binary_log.cpp.i
.PHONY : binary_log.cpp.i
binary_log.s: binary_log.cpp.s
.PHONY : binary_log.s
# target to generate assembly for a file
binary_log.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binary_log.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binary_log.cpp.s
.PHONY : binary_log.cpp.s
binlog_driver.o: binlog_driver.cpp.o
.PHONY : binlog_driver.o
# target to build an object file
binlog_driver.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_driver.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_driver.cpp.o
.PHONY : binlog_driver.cpp.o
binlog_driver.i: binlog_driver.cpp.i
.PHONY : binlog_driver.i
# target to preprocess a source file
binlog_driver.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_driver.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_driver.cpp.i
.PHONY : binlog_driver.cpp.i
binlog_driver.s: binlog_driver.cpp.s
.PHONY : binlog_driver.s
# target to generate assembly for a file
binlog_driver.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_driver.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_driver.cpp.s
.PHONY : binlog_driver.cpp.s
binlog_event.o: binlog_event.cpp.o
.PHONY : binlog_event.o
# target to build an object file
binlog_event.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_event.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_event.cpp.o
.PHONY : binlog_event.cpp.o
binlog_event.i: binlog_event.cpp.i
.PHONY : binlog_event.i
# target to preprocess a source file
binlog_event.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_event.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_event.cpp.i
.PHONY : binlog_event.cpp.i
binlog_event.s: binlog_event.cpp.s
.PHONY : binlog_event.s
# target to generate assembly for a file
binlog_event.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/binlog_event.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/binlog_event.cpp.s
.PHONY : binlog_event.cpp.s
field_iterator.o: field_iterator.cpp.o
.PHONY : field_iterator.o
# target to build an object file
field_iterator.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/field_iterator.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/field_iterator.cpp.o
.PHONY : field_iterator.cpp.o
field_iterator.i: field_iterator.cpp.i
.PHONY : field_iterator.i
# target to preprocess a source file
field_iterator.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/field_iterator.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/field_iterator.cpp.i
.PHONY : field_iterator.cpp.i
field_iterator.s: field_iterator.cpp.s
.PHONY : field_iterator.s
# target to generate assembly for a file
field_iterator.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/field_iterator.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/field_iterator.cpp.s
.PHONY : field_iterator.cpp.s
file_driver.o: file_driver.cpp.o
.PHONY : file_driver.o
# target to build an object file
file_driver.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/file_driver.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/file_driver.cpp.o
.PHONY : file_driver.cpp.o
file_driver.i: file_driver.cpp.i
.PHONY : file_driver.i
# target to preprocess a source file
file_driver.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/file_driver.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/file_driver.cpp.i
.PHONY : file_driver.cpp.i
file_driver.s: file_driver.cpp.s
.PHONY : file_driver.s
# target to generate assembly for a file
file_driver.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/file_driver.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/file_driver.cpp.s
.PHONY : file_driver.cpp.s
gtid.o: gtid.cpp.o
.PHONY : gtid.o
# target to build an object file
gtid.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/gtid.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/gtid.cpp.o
.PHONY : gtid.cpp.o
gtid.i: gtid.cpp.i
.PHONY : gtid.i
# target to preprocess a source file
gtid.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/gtid.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/gtid.cpp.i
.PHONY : gtid.cpp.i
gtid.s: gtid.cpp.s
.PHONY : gtid.s
# target to generate assembly for a file
gtid.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/gtid.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/gtid.cpp.s
.PHONY : gtid.cpp.s
protocol.o: protocol.cpp.o
.PHONY : protocol.o
# target to build an object file
protocol.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/protocol.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/protocol.cpp.o
.PHONY : protocol.cpp.o
protocol.i: protocol.cpp.i
.PHONY : protocol.i
# target to preprocess a source file
protocol.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/protocol.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/protocol.cpp.i
.PHONY : protocol.cpp.i
protocol.s: protocol.cpp.s
.PHONY : protocol.s
# target to generate assembly for a file
protocol.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/protocol.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/protocol.cpp.s
.PHONY : protocol.cpp.s
resultset_iterator.o: resultset_iterator.cpp.o
.PHONY : resultset_iterator.o
# target to build an object file
resultset_iterator.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/resultset_iterator.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/resultset_iterator.cpp.o
.PHONY : resultset_iterator.cpp.o
resultset_iterator.i: resultset_iterator.cpp.i
.PHONY : resultset_iterator.i
# target to preprocess a source file
resultset_iterator.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/resultset_iterator.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/resultset_iterator.cpp.i
.PHONY : resultset_iterator.cpp.i
resultset_iterator.s: resultset_iterator.cpp.s
.PHONY : resultset_iterator.s
# target to generate assembly for a file
resultset_iterator.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/resultset_iterator.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/resultset_iterator.cpp.s
.PHONY : resultset_iterator.cpp.s
row_of_fields.o: row_of_fields.cpp.o
.PHONY : row_of_fields.o
# target to build an object file
row_of_fields.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/row_of_fields.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/row_of_fields.cpp.o
.PHONY : row_of_fields.cpp.o
row_of_fields.i: row_of_fields.cpp.i
.PHONY : row_of_fields.i
# target to preprocess a source file
row_of_fields.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/row_of_fields.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/row_of_fields.cpp.i
.PHONY : row_of_fields.cpp.i
row_of_fields.s: row_of_fields.cpp.s
.PHONY : row_of_fields.s
# target to generate assembly for a file
row_of_fields.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/row_of_fields.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/row_of_fields.cpp.s
.PHONY : row_of_fields.cpp.s
tcp_driver.o: tcp_driver.cpp.o
.PHONY : tcp_driver.o
# target to build an object file
tcp_driver.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/tcp_driver.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/tcp_driver.cpp.o
.PHONY : tcp_driver.cpp.o
tcp_driver.i: tcp_driver.cpp.i
.PHONY : tcp_driver.i
# target to preprocess a source file
tcp_driver.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/tcp_driver.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/tcp_driver.cpp.i
.PHONY : tcp_driver.cpp.i
tcp_driver.s: tcp_driver.cpp.s
.PHONY : tcp_driver.s
# target to generate assembly for a file
tcp_driver.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/tcp_driver.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/tcp_driver.cpp.s
.PHONY : tcp_driver.cpp.s
utilities.o: utilities.cpp.o
.PHONY : utilities.o
# target to build an object file
utilities.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/utilities.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/utilities.cpp.o
.PHONY : utilities.cpp.o
utilities.i: utilities.cpp.i
.PHONY : utilities.i
# target to preprocess a source file
utilities.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/utilities.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/utilities.cpp.i
.PHONY : utilities.cpp.i
utilities.s: utilities.cpp.s
.PHONY : utilities.s
# target to generate assembly for a file
utilities.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/utilities.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/utilities.cpp.s
.PHONY : utilities.cpp.s
value.o: value.cpp.o
.PHONY : value.o
# target to build an object file
value.cpp.o:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/value.cpp.o
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/value.cpp.o
.PHONY : value.cpp.o
value.i: value.cpp.i
.PHONY : value.i
# target to preprocess a source file
value.cpp.i:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/value.cpp.i
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/value.cpp.i
.PHONY : value.cpp.i
value.s: value.cpp.s
.PHONY : value.s
# target to generate assembly for a file
value.cpp.s:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_shared.dir/build.make src/CMakeFiles/replication_shared.dir/value.cpp.s
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(MAKE) -f src/CMakeFiles/replication_static.dir/build.make src/CMakeFiles/replication_static.dir/value.cpp.s
.PHONY : value.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... install"
@echo "... install/local"
@echo "... list_install_components"
@echo "... package"
@echo "... package_source"
@echo "... rebuild_cache"
@echo "... replication_shared"
@echo "... replication_static"
@echo "... access_method_factory.o"
@echo "... access_method_factory.i"
@echo "... access_method_factory.s"
@echo "... basic_content_handler.o"
@echo "... basic_content_handler.i"
@echo "... basic_content_handler.s"
@echo "... basic_transaction_parser.o"
@echo "... basic_transaction_parser.i"
@echo "... basic_transaction_parser.s"
@echo "... binary_log.o"
@echo "... binary_log.i"
@echo "... binary_log.s"
@echo "... binlog_driver.o"
@echo "... binlog_driver.i"
@echo "... binlog_driver.s"
@echo "... binlog_event.o"
@echo "... binlog_event.i"
@echo "... binlog_event.s"
@echo "... field_iterator.o"
@echo "... field_iterator.i"
@echo "... field_iterator.s"
@echo "... file_driver.o"
@echo "... file_driver.i"
@echo "... file_driver.s"
@echo "... gtid.o"
@echo "... gtid.i"
@echo "... gtid.s"
@echo "... protocol.o"
@echo "... protocol.i"
@echo "... protocol.s"
@echo "... resultset_iterator.o"
@echo "... resultset_iterator.i"
@echo "... resultset_iterator.s"
@echo "... row_of_fields.o"
@echo "... row_of_fields.i"
@echo "... row_of_fields.s"
@echo "... tcp_driver.o"
@echo "... tcp_driver.i"
@echo "... tcp_driver.s"
@echo "... utilities.o"
@echo "... utilities.i"
@echo "... utilities.s"
@echo "... value.o"
@echo "... value.i"
@echo "... value.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
cd /home/jan/skysql/skygateway/skygateway/replication_listener && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system

View File

@ -41,6 +41,16 @@ IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspeci
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/jan/skysql/skygateway/skygateway/replication_listener/lib/libreplication.a")
FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/jan/skysql/skygateway/skygateway/replication_listener/src/libreplication.a")
ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
IF(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)
FILE(WRITE "/home/jan/skysql/skygateway/skygateway/replication_listener/src/${CMAKE_INSTALL_MANIFEST}" "")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
FILE(APPEND "/home/jan/skysql/skygateway/skygateway/replication_listener/src/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
ENDFOREACH(file)

View File

@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
#include <iostream>
#include <mysql.h>
#include <my_global.h>
#include <my_byteorder.h>
#include <mysql_com.h>
using namespace mysql;
using namespace mysql::system;