diff --git a/build_gateway.inc b/build_gateway.inc index 50289b58a..220fe4a52 100644 --- a/build_gateway.inc +++ b/build_gateway.inc @@ -9,24 +9,24 @@ # # Set debug flags # -# DEBUG := +DEBUG := Y # DEBUGGER := # DEBUGGER_PATH := # DEBUGGER_BIN := # # Set build env # -UNIX := +UNIX := Y # # Set path for root directory, that is, path to directory where # makefile.inc and build_gateway.inc are located. # ROOT_PATH is used in makefile. # -ROOT_PATH := +ROOT_PATH := /home/jan/skysql/maxscale # MARIADB_SRC_PATH may be defined either as an environment variable or # specifically here ifndef $(MARIADB_SRC_PATH) - MARIADB_SRC_PATH := + MARIADB_SRC_PATH := /home/jan/mysql/5.5 endif diff --git a/replication_listener/CMakeLists.txt b/replication_listener/CMakeLists.txt index ad5c00566..162697856 100644 --- a/replication_listener/CMakeLists.txt +++ b/replication_listener/CMakeLists.txt @@ -1,34 +1,18 @@ -project (mysql-5.6-labs-binary-log-api) -cmake_minimum_required (VERSION 2.6) +project (mariadb-replication-listener-api) +cmake_minimum_required(VERSION 2.6) -set(MySQL_BINLOG_VERSION_MAJOR "0") -set(MySQL_BINLOG_VERSION_MINOR "0.1") -set(MRL_VERSION "${MySQL_BINLOG_VERSION_MAJOR}.${MySQL_BINLOG_VERSION_MINOR}") +# This configuration file builds both the static and shared version of +# the library. +set(replication_sources + access_method_factory.cpp + binlog_driver.cpp tcp_driver.cpp + binary_log.cpp protocol.cpp binlog_event.cpp + gtid.cpp resultset_iterator.cpp value.cpp row_of_fields.cpp) -set(CMAKE_VERSION_STRING "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}") +# Find MySQL client library and header files +find_library(MySQL_LIBRARY NAMES libmysqld.a PATHS +/usr/lib64/mysql /usr/lib/mysql /usr/local/mysql/lib ${MARIADB_SRC_PATH}/lib) -# Options for building -option(WITH_SERVER_TESTS - "Build the unit test suite with tests requiring a server" - OFF) - -# GTest download variables -set(GTEST_VERSION "1.5.0") -set(GTEST_PACKAGE_NAME "gtest-${GTEST_VERSION}") -set(GTEST_TARBALL "${GTEST_PACKAGE_NAME}.tar.gz") -set(GTEST_DOWNLOAD_URL "http://googletest.googlecode.com/files/${GTEST_TARBALL}") -if(NOT DOWNLOAD_ROOT) - set(DOWNLOAD_ROOT ${CMAKE_SOURCE_DIR}/source_downloads) -endif() -set(GTEST_SOURCE_DIR ${DOWNLOAD_ROOT}/${GTEST_PACKAGE_NAME}) - -# General settings -set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) -set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) -include_directories(include) -link_directories(${PROJECT_BINARY_DIR}/lib) - -# ---------- Find Boost Headers/Libraries ----------------------- SET(Boost_DEBUG FALSE) SET(Boost_FIND_REQUIRED TRUE) SET(Boost_FIND_QUIETLY TRUE) @@ -36,124 +20,28 @@ SET(Boost_USE_STATIC_LIBS FALSE) SET(Boost_ADDITIONAL_VERSIONS "1.41" "1.41.0") FIND_PACKAGE(Boost REQUIRED system thread) -# --------- Find crypt FIND_LIBRARY(LIB_CRYPTO crypto /opt/local/lib /opt/lib /usr/lib /usr/local/lib) LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) -# Locate Google Test package and enable tests if it is found -find_package(GTest ${GTEST_VERSION} QUIET) +include_directories(${MARIADB_SRC_PATH}) +include_directories(/usr/local/mysql/include) +include_directories(../../utils) +include_directories(.) -if (NOT GTEST_FOUND) - if (NOT ENABLE_DOWNLOADS) - # Give one-time warning - if (NOT ONETIME_GTEST_WARNING) - message(STATUS - "Googletest was not found. gtest-based unit tests will be disabled. " - "You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and " - "build required components from source.") - SET(ONETIME_GTEST_WARNING 1 CACHE INTERNAL "") - endif (NOT ONETIME_GTEST_WARNING) - else (NOT ENABLE_DOWNLOADS) - # Download gtest source - if (NOT EXISTS ${GTEST_SOURCE_DIR} AND - NOT EXISTS ${DOWNLOAD_ROOT}/${GTEST_TARBALL}) - if (${CMAKE_VERSION_STRING} LESS "2.8") - # In versions earlier than 2.8, try wget for downloading - find_program(WGET_EXECUTABLE wget) - mark_as_advanced(WGET_EXECUTABLE) - if (WGET_EXECUTABLE) - if (NOT EXISTS ${DOWNLOAD_ROOT}) - make_directory(${DOWNLOAD_ROOT}) - endif (NOT EXISTS ${DOWNLOAD_ROOT}) - execute_process(COMMAND ${WGET_EXECUTABLE} -T 30 ${GTEST_DOWNLOAD_URL} - WORKING_DIRECTORY ${DOWNLOAD_ROOT} RESULT_VARIABLE ERR) - if (ERR EQUAL 0) - SET(DOWNLOAD_SUCCEEDED 1) - endif (ERR EQUAL 0) - endif (WGET_EXECUTABLE) - else (${CMAKE_VERSION_STRING} LESS "2.8") - # Use CMake builtin download capabilities - file(DOWNLOAD ${GTEST_DOWNLOAD_URL} ${DOWNLOAD_ROOT}/${GTEST_TARBALL} - TIMEOUT 30 - STATUS ERR) - if (ERR EQUAL 0) - SET(DOWNLOAD_SUCCEEDED 1) - endif (ERR EQUAL 0) - endif(${CMAKE_VERSION_STRING} LESS "2.8") +# Configure for building static library +add_library(replication_static STATIC ${replication_sources}) +target_link_libraries(replication_static ${CYPTO} ${Boost_LIBRARIES} ${MySQL_LIBRARY}) +set_target_properties(replication_static PROPERTIES + OUTPUT_NAME "replication") - if (NOT DOWNLOAD_SUCCEEDED) - message(STATUS - "To enable google test, please download ${GTEST_DOWNLOAD_URL} " - "to the directory ${DOWNLOAD_ROOT}") - else (NOT DOWNLOAD_SUCCEEDED) - message(STATUS - "Successfully downloaded ${GTEST_DOWNLOAD_URL} to ${DOWNLOAD_ROOT}") - # Unpack tarball - execute_process ( - COMMAND ${CMAKE_COMMAND} -E tar xfz "${DOWNLOAD_ROOT}/${GTEST_TARBALL}" - WORKING_DIRECTORY "${DOWNLOAD_ROOT}" - OUTPUT_QUIET - ERROR_QUIET - ) - set(GTEST_DOWNLOADED 1 CACHE INTERNAL "") - set(GTEST_FOUND 1 CACHE INTERNAL "") - endif (NOT DOWNLOAD_SUCCEEDED) - else(NOT EXISTS ${GTEST_SOURCE_DIR} AND NOT EXISTS ${DOWNLOAD_ROOT}/${GTEST_TARBALL}) - set(GTEST_DOWNLOADED 1 CACHE INTERNAL "") - set(GTEST_FOUND 1 CACHE INTERNAL "") - endif(NOT EXISTS ${GTEST_SOURCE_DIR} AND NOT EXISTS ${DOWNLOAD_ROOT}/${GTEST_TARBALL}) - endif (NOT ENABLE_DOWNLOADS) -endif (NOT GTEST_FOUND) +# Configure for building shared library +add_library(replication_shared SHARED ${replication_sources}) +target_link_libraries(replication_shared ${CYPTO} ${Boost_LIBRARIES} ${MySQL_LIBRARY}) -if (GTEST_DOWNLOADED) - # Build gtest library - include_directories( - ${GTEST_SOURCE_DIR} - ${GTEST_SOURCE_DIR}/include - ) - add_library(gtest STATIC ${GTEST_SOURCE_DIR}/src/gtest-all.cc) - - # Set CMake variables to make FindPackage(GTest) happy next time. - SET(GTEST_FOUND 1 CACHE INTERNAL "") - SET(GTEST_LIBRARY gtest CACHE INTERNAL "") - SET(GTEST_LIBRARIES gtest CACHE INTERNAL "") - SET(GTEST_MAIN_LIBRARY no_gtest_main_library CACHE INTERNAL "") - SET(GTEST_INCLUDE_DIRS ${GTEST_SOURCE_DIR}/include CACHE INTERNAL "") - SET(GTEST_INCLUDE_DIR "${GTEST_SOURCE_DIR}/include" CACHE INTERNAL "") -endif (GTEST_DOWNLOADED) +set_target_properties(replication_shared PROPERTIES + VERSION 0.1 SOVERSION 1 + OUTPUT_NAME "replication") -if(GTEST_FOUND) - message(STATUS "Tests from subdirectory 'tests' added") - enable_testing(true) - include_directories(${GTEST_INCLUDE_DIRS}) - add_subdirectory(tests) -endif(GTEST_FOUND) - -add_subdirectory(src) - -# -- Build the examples -add_subdirectory(examples EXCLUDE_FROM_ALL) - -# Configure installation -install(DIRECTORY include DESTINATION . FILES_MATCHING PATTERN "*.h") - -include(InstallRequiredSystemLibraries) - -# Configure packaging -SET(CPACK_PACKAGE_NAME "mysql-5.6-labs-binary-log-api") -SET(CPACK_PACKAGE_VERSION_MAJOR "${MySQL_BINLOG_VERSION_MAJOR}") -SET(CPACK_PACKAGE_VERSION_MINOR "${MySQL_BINLOG_VERSION_MINOR}") -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY - "mysql-5.6-labs-binary-log-api: a MySQL client library for interfacing with the binary log mechanism.") - -SET(CPACK_GENERATOR "STGZ;TGZ;TZ;DEB;RPM") - -# Get package name correctly formatted with name, version, and platform -execute_process(COMMAND uname -m OUTPUT_VARIABLE SYSTEM_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE) -SET(CPACK_PACKAGE_FILE_NAME - "${CPACK_PACKAGE_NAME}.${MRL_VERSION}.${CMAKE_SYSTEM_NAME}.${SYSTEM_ARCH}") - -SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Oracle Corporation") - -include(CPack) +install(TARGETS replication_shared LIBRARY DESTINATION lib) +install(TARGETS replication_static ARCHIVE DESTINATION lib) diff --git a/replication_listener/Doxyfile b/replication_listener/Doxyfile deleted file mode 100644 index 3f67e2759..000000000 --- a/replication_listener/Doxyfile +++ /dev/null @@ -1,1551 +0,0 @@ -# Doxyfile 1.6.3 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project -# -# All text after a hash (#) is considered a comment and will be ignored -# The format is: -# TAG = value [value, ...] -# For lists items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (" ") - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all -# text before the first occurrence of this tag. Doxygen uses libiconv (or the -# iconv built into libc) for the transcoding. See -# http://www.gnu.org/software/libiconv for the list of possible encodings. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded -# by quotes) that should identify the project. - -PROJECT_NAME = "Replication Listener" - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. -# This could be handy for archiving the generated documentation or -# if some version control system is used. - -PROJECT_NUMBER = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) -# base path where the generated documentation will be put. -# If a relative path is entered, it will be relative to the location -# where doxygen was started. If left blank the current directory will be used. - -OUTPUT_DIRECTORY = build/doxygen - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create -# 4096 sub-directories (in 2 levels) under the output directory of each output -# format and will distribute the generated files over these directories. -# Enabling this option can be useful when feeding doxygen a huge amount of -# source files, where putting all generated files in the same directory would -# otherwise cause performance problems for the file system. - -CREATE_SUBDIRS = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# The default language is English, other supported languages are: -# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, -# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, -# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English -# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, -# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, -# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will -# include brief member descriptions after the members that are listed in -# the file and class documentation (similar to JavaDoc). -# Set to NO to disable this. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend -# the brief description of a member or function before the detailed description. -# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator -# that is used to form the text in various listings. Each string -# in this list, if found as the leading text of the brief description, will be -# stripped from the text and the result after processing the whole list, is -# used as the annotated text. Otherwise, the brief description is used as-is. -# If left blank, the following values are used ("$name" is automatically -# replaced with the name of the entity): "The $name class" "The $name widget" -# "The $name file" "is" "provides" "specifies" "contains" -# "represents" "a" "an" "the" - -ABBREVIATE_BRIEF = - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# Doxygen will generate a detailed section even if there is only a brief -# description. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full -# path before files name in the file list and in the header files. If set -# to NO the shortest path that makes the file name unique will be used. - -FULL_PATH_NAMES = YES - -# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag -# can be used to strip a user-defined part of the path. Stripping is -# only done if one of the specified strings matches the left-hand part of -# the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the -# path to strip. - -STRIP_FROM_PATH = - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of -# the path mentioned in the documentation of a class, which tells -# the reader which header file to include in order to use a class. -# If left blank only the name of the header file containing the class -# definition is used. Otherwise one should specify the include paths that -# are normally passed to the compiler using the -I flag. - -STRIP_FROM_INC_PATH = - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter -# (but less readable) file names. This can be useful is your file systems -# doesn't support long names like on DOS, Mac, or CD-ROM. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen -# will interpret the first line (until the first dot) of a JavaDoc-style -# comment as the brief description. If set to NO, the JavaDoc -# comments will behave just like regular Qt-style comments -# (thus requiring an explicit @brief command for a brief description.) - -JAVADOC_AUTOBRIEF = NO - -# If the QT_AUTOBRIEF tag is set to YES then Doxygen will -# interpret the first line (until the first dot) of a Qt-style -# comment as the brief description. If set to NO, the comments -# will behave just like regular Qt-style comments (thus requiring -# an explicit \brief command for a brief description.) - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen -# treat a multi-line C++ special comment block (i.e. a block of //! or /// -# comments) as a brief description. This used to be the default behaviour. -# The new default is to treat a multi-line C++ comment block as a detailed -# description. Set this tag to YES if you prefer the old behaviour instead. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented -# member inherits the documentation from any documented member that it -# re-implements. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce -# a new page for each member. If set to NO, the documentation of a member will -# be part of the file/class/namespace that contains it. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. -# Doxygen uses this value to replace tabs by spaces in code fragments. - -TAB_SIZE = 8 - -# This tag can be used to specify a number of aliases that acts -# as commands in the documentation. An alias has the form "name=value". -# For example adding "sideeffect=\par Side Effects:\n" will allow you to -# put the command \sideeffect (or @sideeffect) in the documentation, which -# will result in a user-defined paragraph with heading "Side Effects:". -# You can put \n's in the value part of an alias to insert newlines. - -ALIASES = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C -# sources only. Doxygen will then generate output that is more tailored for C. -# For instance, some of the names that are used will be different. The list -# of all members will be omitted, etc. - -OPTIMIZE_OUTPUT_FOR_C = NO - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java -# sources only. Doxygen will then generate output that is more tailored for -# Java. For instance, namespaces will be presented as packages, qualified -# scopes will look different, etc. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources only. Doxygen will then generate output that is more tailored for -# Fortran. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for -# VHDL. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it parses. -# With this tag you can assign which parser to use for a given extension. -# Doxygen has a built-in mapping, but you can override or extend it using this tag. -# The format is ext=language, where ext is a file extension, and language is one of -# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, -# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat -# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), -# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should -# set this tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. -# func(std::string) {}). This also make the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. -# Doxygen will parse them like normal C++ but will assume all classes use public -# instead of private inheritance when no explicit protection keyword is present. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate getter -# and setter methods for a property. Setting this option to YES (the default) -# will make doxygen to replace the get and set methods by a property in the -# documentation. This will only work if the methods are indeed getting or -# setting a simple type. If this is not the case, or you want to show the -# methods anyway, you should set this option to NO. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES (the default) to allow class member groups of -# the same type (for instance a group of public functions) to be put as a -# subgroup of that type (e.g. under the Public Functions section). Set it to -# NO to prevent subgrouping. Alternatively, this can be done per class using -# the \nosubgrouping command. - -SUBGROUPING = YES - -# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum -# is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically -# be useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. - -TYPEDEF_HIDES_STRUCT = NO - -# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to -# determine which symbols to keep in memory and which to flush to disk. -# When the cache is full, less often used symbols will be written to disk. -# For small to medium size projects (<1000 input files) the default value is -# probably good enough. For larger projects a too small cache size can cause -# doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penality. -# If the system has enough physical memory increasing the cache will improve the -# performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will rougly double the -# memory usage. The cache size is given by this formula: -# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, -# corresponding to a cache size of 2^16 = 65536 symbols - -SYMBOL_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. -# Private class members and static file members will be hidden unless -# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES - -EXTRACT_ALL = YES - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class -# will be included in the documentation. - -EXTRACT_PRIVATE = YES - -# If the EXTRACT_STATIC tag is set to YES all static members of a file -# will be included in the documentation. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) -# defined locally in source files will be included in the documentation. -# If set to NO only classes defined in header files are included. - -EXTRACT_LOCAL_CLASSES = YES - -# This flag is only useful for Objective-C code. When set to YES local -# methods, which are defined in the implementation section but not in -# the interface are included in the documentation. -# If set to NO (the default) only methods in the interface are included. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base -# name of the file that contains the anonymous namespace. By default -# anonymous namespace are hidden. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all -# undocumented members of documented classes, files or namespaces. -# If set to NO (the default) these members will be included in the -# various overviews, but no documentation section is generated. -# This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_MEMBERS = NO - -# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. -# If set to NO (the default) these classes will be included in the various -# overviews. This option has no effect if EXTRACT_ALL is enabled. - -HIDE_UNDOC_CLASSES = NO - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all -# friend (class|struct|union) declarations. -# If set to NO (the default) these declarations will be included in the -# documentation. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any -# documentation blocks found inside the body of a function. -# If set to NO (the default) these blocks will be appended to the -# function's detailed documentation block. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation -# that is typed after a \internal command is included. If the tag is set -# to NO (the default) then the documentation will be excluded. -# Set it to YES to include the internal documentation. - -INTERNAL_DOCS = NO - -# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate -# file names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen -# will show members with their full class and namespace scopes in the -# documentation. If set to YES the scope will be hidden. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen -# will put a list of the files that are included by a file in the documentation -# of that file. - -SHOW_INCLUDE_FILES = YES - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen -# will list include files with double quotes in the documentation -# rather than with sharp brackets. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] -# is inserted in the documentation for inline members. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen -# will sort the (detailed) documentation of file and class members -# alphabetically by member name. If set to NO the members will appear in -# declaration order. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the -# brief documentation of file, namespace and class members alphabetically -# by member name. If set to NO (the default) the members will appear in -# declaration order. - -SORT_BRIEF_DOCS = NO - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the (brief and detailed) documentation of class members so that constructors and destructors are listed first. If set to NO (the default) the constructors will appear in the respective orders defined by SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the -# hierarchy of group names into alphabetical order. If set to NO (the default) -# the group names will appear in their defined order. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be -# sorted by fully-qualified names, including namespaces. If set to -# NO (the default), the class list will be sorted only by class name, -# not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the -# alphabetical list. - -SORT_BY_SCOPE_NAME = NO - -# The GENERATE_TODOLIST tag can be used to enable (YES) or -# disable (NO) the todo list. This list is created by putting \todo -# commands in the documentation. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable (YES) or -# disable (NO) the test list. This list is created by putting \test -# commands in the documentation. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable (YES) or -# disable (NO) the bug list. This list is created by putting \bug -# commands in the documentation. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or -# disable (NO) the deprecated list. This list is created by putting -# \deprecated commands in the documentation. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional -# documentation sections, marked by \if sectionname ... \endif. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines -# the initial value of a variable or define consists of for it to appear in -# the documentation. If the initializer consists of more lines than specified -# here it will be hidden. Use a value of 0 to hide initializers completely. -# The appearance of the initializer of individual variables and defines in the -# documentation can be controlled using \showinitializer or \hideinitializer -# command in the documentation regardless of this setting. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated -# at the bottom of the documentation of classes and structs. If set to YES the -# list will mention the files that were used to generate the documentation. - -SHOW_USED_FILES = YES - -# If the sources in your project are distributed over multiple directories -# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy -# in the documentation. The default is NO. - -SHOW_DIRECTORIES = NO - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. -# This will remove the Files entry from the Quick Index and from the -# Folder Tree View (if specified). The default is YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the -# Namespaces page. -# This will remove the Namespaces entry from the Quick Index -# and from the Folder Tree View (if specified). The default is YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command , where is the value of -# the FILE_VERSION_FILTER tag, and is the name of an input file -# provided by doxygen. Whatever the program writes to standard output -# is used as the file version. See the manual for examples. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by -# doxygen. The layout file controls the global structure of the generated output files -# in an output format independent way. The create the layout file that represents -# doxygen's defaults, run doxygen with the -l option. You can optionally specify a -# file name after the option, if omitted DoxygenLayout.xml will be used as the name -# of the layout file. - -LAYOUT_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated -# by doxygen. Possible values are YES and NO. If left blank NO is used. - -QUIET = NO - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated by doxygen. Possible values are YES and NO. If left blank -# NO is used. - -WARNINGS = YES - -# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings -# for undocumented members. If EXTRACT_ALL is set to YES then this flag will -# automatically be disabled. - -WARN_IF_UNDOCUMENTED = YES - -# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some -# parameters in a documented function, or documenting parameters that -# don't exist or using markup commands wrongly. - -WARN_IF_DOC_ERROR = YES - -# This WARN_NO_PARAMDOC option can be abled to get warnings for -# functions that are documented, but have no documentation for their parameters -# or return value. If set to NO (the default) doxygen will only warn about -# wrong or incomplete parameter documentation, but not about the absence of -# documentation. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that -# doxygen can produce. The string should contain the $file, $line, and $text -# tags, which will be replaced by the file and line number from which the -# warning originated and the warning text. Optionally the format may contain -# $version, which will be replaced by the version of the file (if it could -# be obtained via FILE_VERSION_FILTER) - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning -# and error messages should be written. If left blank the output is written -# to stderr. - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT = src include examples tests - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is -# also the default input encoding. Doxygen uses libiconv (or the iconv built -# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for -# the list of possible encodings. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank the following patterns are tested: -# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx -# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 - -FILE_PATTERNS = - -# The RECURSIVE tag can be used to turn specify whether or not subdirectories -# should be searched for input files as well. Possible values are YES and NO. -# If left blank NO is used. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used select whether or not files or -# directories that are symbolic links (a Unix filesystem feature) are excluded -# from the input. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. Note that the wildcards are matched -# against the file with absolute path, so to exclude all test directories -# for example use the pattern */test/* - -EXCLUDE_PATTERNS = - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -EXAMPLE_PATH = - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp -# and *.h) to filter out the source-files in the directories. If left -# blank all files are included. - -EXAMPLE_PATTERNS = - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude -# commands irrespective of the value of the RECURSIVE tag. -# Possible values are YES and NO. If left blank NO is used. - -EXAMPLE_RECURSIVE = NO - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command , where -# is the value of the INPUT_FILTER tag, and is the name of an -# input file. Doxygen will then use the output that the filter program writes -# to standard output. -# If FILTER_PATTERNS is specified, this tag will be -# ignored. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. -# Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. -# The filters are a list of the form: -# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further -# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER -# is applied to all files. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER) will be used to filter the input files when producing source -# files to browse (i.e. when SOURCE_BROWSER is set to YES). - -FILTER_SOURCE_FILES = NO - -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will -# be generated. Documented entities will be cross-referenced with these sources. -# Note: To get rid of all source code in the generated output, make sure also -# VERBATIM_HEADERS is set to NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body -# of functions and classes directly in the documentation. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct -# doxygen to hide any special comment blocks from generated source code -# fragments. Normal C and C++ comments will always remain visible. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES -# then for each documented function all documented -# functions referencing it will be listed. - -REFERENCED_BY_RELATION = NO - -# If the REFERENCES_RELATION tag is set to YES -# then for each documented function all documented entities -# called/used by that function will be listed. - -REFERENCES_RELATION = NO - -# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) -# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from -# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will -# link to the source code. -# Otherwise they will link to the documentation. - -REFERENCES_LINK_SOURCE = YES - -# If the USE_HTAGS tag is set to YES then the references to source code -# will point to the HTML generated by the htags(1) tool instead of doxygen -# built-in source browser. The htags tool is part of GNU's global source -# tagging system (see http://www.gnu.org/software/global/global.html). You -# will need version 4.8.6 or higher. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen -# will generate a verbatim copy of the header file for each class for -# which an include is specified. Set to NO to disable this. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index -# of all compounds will be generated. Enable this if the project -# contains a lot of classes, structs, unions or interfaces. - -ALPHABETICAL_INDEX = NO - -# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then -# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns -# in which this list will be split (can be a number in the range [1..20]) - -COLS_IN_ALPHA_INDEX = 5 - -# In case all classes in a project start with a common prefix, all -# classes will be put under the same header in the alphabetical index. -# The IGNORE_PREFIX tag can be used to specify one or more prefixes that -# should be ignored while generating the index headers. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES (the default) Doxygen will -# generate HTML output. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `html' will be used as the default path. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for -# each generated HTML page (for example: .htm,.php,.asp). If it is left blank -# doxygen will generate files with .html extension. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a personal HTML header for -# each generated HTML page. If it is left blank doxygen will generate a -# standard header. - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a personal HTML footer for -# each generated HTML page. If it is left blank doxygen will generate a -# standard footer. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading -# style sheet that is used by each HTML page. It can be used to -# fine-tune the look of the HTML output. If the tag is left blank doxygen -# will generate a default style sheet. Note that doxygen will try to copy -# the style sheet file to the HTML output directory, so don't put your own -# stylesheet in the HTML output directory as well, or it will be erased! - -HTML_STYLESHEET = - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting -# this to NO can help when comparing the output of multiple runs. - -HTML_TIMESTAMP = YES - -# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, -# files or namespaces will be aligned in HTML using tables. If set to -# NO a bullet list will be used. - -HTML_ALIGN_MEMBERS = YES - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. For this to work a browser that supports -# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox -# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). - -HTML_DYNAMIC_SECTIONS = NO - -# If the GENERATE_DOCSET tag is set to YES, additional index files -# will be generated that can be used as input for Apple's Xcode 3 -# integrated development environment, introduced with OSX 10.5 (Leopard). -# To create a documentation set, doxygen will generate a Makefile in the -# HTML output directory. Running make will produce the docset in that -# directory and running "make install" will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find -# it at startup. -# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information. - -GENERATE_DOCSET = NO - -# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the -# feed. A documentation feed provides an umbrella under which multiple -# documentation sets from a single provider (such as a company or product suite) -# can be grouped. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that -# should uniquely identify the documentation set bundle. This should be a -# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen -# will append .docset to the name. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# If the GENERATE_HTMLHELP tag is set to YES, additional index files -# will be generated that can be used as input for tools like the -# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) -# of the generated HTML documentation. - -GENERATE_HTMLHELP = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can -# be used to specify the file name of the resulting .chm file. You -# can add a path in front of the file if the result should not be -# written to the html output directory. - -CHM_FILE = - -# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can -# be used to specify the location (absolute path including file name) of -# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run -# the HTML help compiler on the generated index.hhp. - -HHC_LOCATION = - -# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag -# controls if a separate .chi index file is generated (YES) or that -# it should be included in the master .chm file (NO). - -GENERATE_CHI = NO - -# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING -# is used to encode HtmlHelp index (hhk), content (hhc) and project file -# content. - -CHM_INDEX_ENCODING = - -# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag -# controls whether a binary table of contents is generated (YES) or a -# normal table of contents (NO) in the .chm file. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members -# to the contents of the HTML help documentation and to the tree view. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER -# are set, an additional index file will be generated that can be used as input for -# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated -# HTML documentation. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can -# be used to specify the file name of the resulting .qch file. -# The path specified is relative to the HTML output folder. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#namespace - -QHP_NAMESPACE = org.doxygen.Project - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating -# Qt Help Project output. For more information please see -# http://doc.trolltech.com/qthelpproject.html#virtual-folders - -QHP_VIRTUAL_FOLDER = doc - -# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. -# For more information please see -# http://doc.trolltech.com/qthelpproject.html#custom-filters - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see -# Qt Help Project / Custom Filters. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's -# filter section matches. -# Qt Help Project / Filter Attributes. - -QHP_SECT_FILTER_ATTRS = - -# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can -# be used to specify the location of Qt's qhelpgenerator. -# If non-empty doxygen will try to run qhelpgenerator on the generated -# .qhp file. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files -# will be generated, which together with the HTML files, form an Eclipse help -# plugin. To install this plugin and make it available under the help contents -# menu in Eclipse, the contents of the directory containing the HTML and XML -# files needs to be copied into the plugins directory of eclipse. The name of -# the directory within the plugins directory should be the same as -# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before the help appears. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have -# this name. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# The DISABLE_INDEX tag can be used to turn on/off the condensed index at -# top of each HTML page. The value NO (the default) enables the index and -# the value YES disables it. - -DISABLE_INDEX = NO - -# This tag can be used to set the number of enum values (range [1..20]) -# that doxygen will group on one line in the generated HTML documentation. - -ENUM_VALUES_PER_LINE = 4 - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. -# If the tag value is set to YES, a side panel will be generated -# containing a tree-like index structure (just like the one that -# is generated for HTML Help). For this to work a browser that supports -# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). -# Windows users are probably better off using the HTML help feature. - -GENERATE_TREEVIEW = NO - -# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, -# and Class Hierarchy pages using a tree view instead of an ordered list. - -USE_INLINE_TREES = NO - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be -# used to set the initial width (in pixels) of the frame in which the tree -# is shown. - -TREEVIEW_WIDTH = 250 - -# Use this tag to change the font size of Latex formulas included -# as images in the HTML documentation. The default is 10. Note that -# when you change the font size after a successful doxygen run you need -# to manually remove any form_*.png images from the HTML output directory -# to force them to be regenerated. - -FORMULA_FONTSIZE = 10 - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box for the HTML output. The underlying search engine uses javascript -# and DHTML and should work on any modern browser. Note that when using HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) there is already a search function so this one should -# typically be disabled. For large projects the javascript based search engine -# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. - -SEARCHENGINE = YES - -# When the SERVER_BASED_SEARCH tag is enabled the search engine will be implemented using a PHP enabled web server instead of at the web client using Javascript. Doxygen will generate the search PHP script and index -# file to put on the web server. The advantage of the server based approach is that it scales better to large projects and allows full text search. The disadvances is that it is more difficult to setup -# and does not have live searching capabilities. - -SERVER_BASED_SEARCH = NO - -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- - -# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will -# generate Latex output. - -GENERATE_LATEX = YES - -# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `latex' will be used as the default path. - -LATEX_OUTPUT = latex - -# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be -# invoked. If left blank `latex' will be used as the default command name. -# Note that when enabling USE_PDFLATEX this option is only used for -# generating bitmaps for formulas in the HTML output, but not in the -# Makefile that is written to the output directory. - -LATEX_CMD_NAME = latex - -# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to -# generate index for LaTeX. If left blank `makeindex' will be used as the -# default command name. - -MAKEINDEX_CMD_NAME = makeindex - -# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact -# LaTeX documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_LATEX = NO - -# The PAPER_TYPE tag can be used to set the paper type that is used -# by the printer. Possible values are: a4, a4wide, letter, legal and -# executive. If left blank a4wide will be used. - -PAPER_TYPE = a4wide - -# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX -# packages that should be included in the LaTeX output. - -EXTRA_PACKAGES = - -# The LATEX_HEADER tag can be used to specify a personal LaTeX header for -# the generated latex document. The header should contain everything until -# the first chapter. If it is left blank doxygen will generate a -# standard header. Notice: only use this tag if you know what you are doing! - -LATEX_HEADER = - -# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated -# is prepared for conversion to pdf (using ps2pdf). The pdf file will -# contain links (just like the HTML output) instead of page references -# This makes the output suitable for online browsing using a pdf viewer. - -PDF_HYPERLINKS = YES - -# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of -# plain latex in the generated Makefile. Set this option to YES to get a -# higher quality PDF documentation. - -USE_PDFLATEX = YES - -# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. -# command to the generated LaTeX files. This will instruct LaTeX to keep -# running if errors occur, instead of asking the user for help. -# This option is also used when generating formulas in HTML. - -LATEX_BATCHMODE = NO - -# If LATEX_HIDE_INDICES is set to YES then doxygen will not -# include the index chapters (such as File Index, Compound Index, etc.) -# in the output. - -LATEX_HIDE_INDICES = NO - -# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER. - -LATEX_SOURCE_CODE = NO - -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- - -# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output -# The RTF output is optimized for Word 97 and may not look very pretty with -# other RTF readers or editors. - -GENERATE_RTF = NO - -# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `rtf' will be used as the default path. - -RTF_OUTPUT = rtf - -# If the COMPACT_RTF tag is set to YES Doxygen generates more compact -# RTF documents. This may be useful for small projects and may help to -# save some trees in general. - -COMPACT_RTF = NO - -# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated -# will contain hyperlink fields. The RTF file will -# contain links (just like the HTML output) instead of page references. -# This makes the output suitable for online browsing using WORD or other -# programs which support those fields. -# Note: wordpad (write) and others do not support links. - -RTF_HYPERLINKS = NO - -# Load stylesheet definitions from file. Syntax is similar to doxygen's -# config file, i.e. a series of assignments. You only have to provide -# replacements, missing definitions are set to their default value. - -RTF_STYLESHEET_FILE = - -# Set optional variables used in the generation of an rtf document. -# Syntax is similar to doxygen's config file. - -RTF_EXTENSIONS_FILE = - -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- - -# If the GENERATE_MAN tag is set to YES (the default) Doxygen will -# generate man pages - -GENERATE_MAN = NO - -# The MAN_OUTPUT tag is used to specify where the man pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `man' will be used as the default path. - -MAN_OUTPUT = man - -# The MAN_EXTENSION tag determines the extension that is added to -# the generated man pages (default is the subroutine's section .3) - -MAN_EXTENSION = .3 - -# If the MAN_LINKS tag is set to YES and Doxygen generates man output, -# then it will generate one additional man file for each entity -# documented in the real man page(s). These additional files -# only source the real man page, but without them the man command -# would be unable to find the correct page. The default is NO. - -MAN_LINKS = NO - -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- - -# If the GENERATE_XML tag is set to YES Doxygen will -# generate an XML file that captures the structure of -# the code including all documentation. - -GENERATE_XML = NO - -# The XML_OUTPUT tag is used to specify where the XML pages will be put. -# If a relative path is entered the value of OUTPUT_DIRECTORY will be -# put in front of it. If left blank `xml' will be used as the default path. - -XML_OUTPUT = xml - -# The XML_SCHEMA tag can be used to specify an XML schema, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_SCHEMA = - -# The XML_DTD tag can be used to specify an XML DTD, -# which can be used by a validating XML parser to check the -# syntax of the XML files. - -XML_DTD = - -# If the XML_PROGRAMLISTING tag is set to YES Doxygen will -# dump the program listings (including syntax highlighting -# and cross-referencing information) to the XML output. Note that -# enabling this will significantly increase the size of the XML output. - -XML_PROGRAMLISTING = YES - -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- - -# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will -# generate an AutoGen Definitions (see autogen.sf.net) file -# that captures the structure of the code including all -# documentation. Note that this feature is still experimental -# and incomplete at the moment. - -GENERATE_AUTOGEN_DEF = NO - -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- - -# If the GENERATE_PERLMOD tag is set to YES Doxygen will -# generate a Perl module file that captures the structure of -# the code including all documentation. Note that this -# feature is still experimental and incomplete at the -# moment. - -GENERATE_PERLMOD = NO - -# If the PERLMOD_LATEX tag is set to YES Doxygen will generate -# the necessary Makefile rules, Perl scripts and LaTeX code to be able -# to generate PDF and DVI output from the Perl module output. - -PERLMOD_LATEX = NO - -# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be -# nicely formatted so it can be parsed by a human reader. -# This is useful -# if you want to understand what is going on. -# On the other hand, if this -# tag is set to NO the size of the Perl module output will be much smaller -# and Perl will parse it just the same. - -PERLMOD_PRETTY = YES - -# The names of the make variables in the generated doxyrules.make file -# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. -# This is useful so different doxyrules.make files included by the same -# Makefile don't overwrite each other's variables. - -PERLMOD_MAKEVAR_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- - -# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will -# evaluate all C-preprocessor directives found in the sources and include -# files. - -ENABLE_PREPROCESSING = YES - -# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro -# names in the source code. If set to NO (the default) only conditional -# compilation will be performed. Macro expansion can be done in a controlled -# way by setting EXPAND_ONLY_PREDEF to YES. - -MACRO_EXPANSION = NO - -# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES -# then the macro expansion is limited to the macros specified with the -# PREDEFINED and EXPAND_AS_DEFINED tags. - -EXPAND_ONLY_PREDEF = NO - -# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files -# in the INCLUDE_PATH (see below) will be search if a #include is found. - -SEARCH_INCLUDES = YES - -# The INCLUDE_PATH tag can be used to specify one or more directories that -# contain include files that are not input files but should be processed by -# the preprocessor. - -INCLUDE_PATH = - -# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard -# patterns (like *.h and *.hpp) to filter out the header-files in the -# directories. If left blank, the patterns specified with FILE_PATTERNS will -# be used. - -INCLUDE_FILE_PATTERNS = - -# The PREDEFINED tag can be used to specify one or more macro names that -# are defined before the preprocessor is started (similar to the -D option of -# gcc). The argument of the tag is a list of macros of the form: name -# or name=definition (no spaces). If the definition and the = are -# omitted =1 is assumed. To prevent a macro definition from being -# undefined via #undef or recursively expanded use the := operator -# instead of the = operator. - -PREDEFINED = - -# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then -# this tag can be used to specify a list of macro names that should be expanded. -# The macro definition that is found in the sources will be used. -# Use the PREDEFINED tag if you want to use a different macro definition. - -EXPAND_AS_DEFINED = - -# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then -# doxygen's preprocessor will remove all function-like macros that are alone -# on a line, have an all uppercase name, and do not end with a semicolon. Such -# function macros are typically used for boiler-plate code, and will confuse -# the parser if not removed. - -SKIP_FUNCTION_MACROS = YES - -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- - -# The TAGFILES option can be used to specify one or more tagfiles. -# Optionally an initial location of the external documentation -# can be added for each tagfile. The format of a tag file without -# this location is as follows: -# -# TAGFILES = file1 file2 ... -# Adding location for the tag files is done as follows: -# -# TAGFILES = file1=loc1 "file2 = loc2" ... -# where "loc1" and "loc2" can be relative or absolute paths or -# URLs. If a location is present for each tag, the installdox tool -# does not have to be run to correct the links. -# Note that each tag file must have a unique name -# (where the name does NOT include the path) -# If a tag file is not located in the directory in which doxygen -# is run, you must also specify the path to the tagfile here. - -TAGFILES = - -# When a file name is specified after GENERATE_TAGFILE, doxygen will create -# a tag file that is based on the input files it reads. - -GENERATE_TAGFILE = - -# If the ALLEXTERNALS tag is set to YES all external classes will be listed -# in the class index. If set to NO only the inherited external classes -# will be listed. - -ALLEXTERNALS = NO - -# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed -# in the modules index. If set to NO, only the current project's groups will -# be listed. - -EXTERNAL_GROUPS = YES - -# The PERL_PATH should be the absolute path and name of the perl script -# interpreter (i.e. the result of `which perl'). - -PERL_PATH = /usr/bin/perl - -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- - -# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will -# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base -# or super classes. Setting the tag to NO turns the diagrams off. Note that -# this option is superseded by the HAVE_DOT option below. This is only a -# fallback. It is recommended to install and use dot, since it yields more -# powerful graphs. - -CLASS_DIAGRAMS = YES - -# You can define message sequence charts within doxygen comments using the \msc -# command. Doxygen will then run the mscgen tool (see -# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the -# documentation. The MSCGEN_PATH tag allows you to specify the directory where -# the mscgen tool resides. If left empty the tool is assumed to be found in the -# default search path. - -MSCGEN_PATH = - -# If set to YES, the inheritance and collaboration graphs will hide -# inheritance and usage relations if the target is undocumented -# or is not a class. - -HIDE_UNDOC_RELATIONS = NO - -# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is -# available from the path. This tool is part of Graphviz, a graph visualization -# toolkit from AT&T and Lucent Bell Labs. The other options in this section -# have no effect if this option is set to NO (the default) - -HAVE_DOT = YES - -# By default doxygen will write a font called FreeSans.ttf to the output -# directory and reference it in all dot files that doxygen generates. This -# font does not include all possible unicode characters however, so when you need -# these (or just want a differently looking font) you can specify the font name -# using DOT_FONTNAME. You need need to make sure dot is able to find the font, -# which can be done by putting it in a standard location or by setting the -# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory -# containing the font. - -DOT_FONTNAME = FreeSans - -# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. -# The default size is 10pt. - -DOT_FONTSIZE = 10 - -# By default doxygen will tell dot to use the output directory to look for the -# FreeSans.ttf font (which doxygen will put there itself). If you specify a -# different font using DOT_FONTNAME you can set the path where dot -# can find it using this tag. - -DOT_FONTPATH = - -# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect inheritance relations. Setting this tag to YES will force the -# the CLASS_DIAGRAMS tag to NO. - -CLASS_GRAPH = YES - -# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for each documented class showing the direct and -# indirect implementation dependencies (inheritance, containment, and -# class references variables) of the class with other documented classes. - -COLLABORATION_GRAPH = YES - -# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen -# will generate a graph for groups, showing the direct groups dependencies - -GROUP_GRAPHS = YES - -# If the UML_LOOK tag is set to YES doxygen will generate inheritance and -# collaboration diagrams in a style similar to the OMG's Unified Modeling -# Language. - -UML_LOOK = NO - -# If set to YES, the inheritance and collaboration graphs will show the -# relations between templates and their instances. - -TEMPLATE_RELATIONS = NO - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT -# tags are set to YES then doxygen will generate a graph for each documented -# file showing the direct and indirect include dependencies of the file with -# other documented files. - -INCLUDE_GRAPH = YES - -# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and -# HAVE_DOT tags are set to YES then doxygen will generate a graph for each -# documented header file showing the documented files that directly or -# indirectly include this file. - -INCLUDED_BY_GRAPH = YES - -# If the CALL_GRAPH and HAVE_DOT options are set to YES then -# doxygen will generate a call dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable call graphs -# for selected functions only using the \callgraph command. - -CALL_GRAPH = NO - -# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then -# doxygen will generate a caller dependency graph for every global function -# or class method. Note that enabling this option will significantly increase -# the time of a run. So in most cases it will be better to enable caller -# graphs for selected functions only using the \callergraph command. - -CALLER_GRAPH = NO - -# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen -# will graphical hierarchy of all classes instead of a textual one. - -GRAPHICAL_HIERARCHY = YES - -# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES -# then doxygen will show the dependencies a directory has on other directories -# in a graphical way. The dependency relations are determined by the #include -# relations between the files in the directories. - -DIRECTORY_GRAPH = YES - -# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images -# generated by dot. Possible values are png, jpg, or gif -# If left blank png will be used. - -DOT_IMAGE_FORMAT = png - -# The tag DOT_PATH can be used to specify the path where the dot tool can be -# found. If left blank, it is assumed the dot tool can be found in the path. - -DOT_PATH = - -# The DOTFILE_DIRS tag can be used to specify one or more directories that -# contain dot files that are included in the documentation (see the -# \dotfile command). - -DOTFILE_DIRS = - -# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of -# nodes that will be shown in the graph. If the number of nodes in a graph -# becomes larger than this value, doxygen will truncate the graph, which is -# visualized by representing a node as a red box. Note that doxygen if the -# number of direct children of the root node in a graph is already larger than -# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note -# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. - -DOT_GRAPH_MAX_NODES = 50 - -# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the -# graphs generated by dot. A depth value of 3 means that only nodes reachable -# from the root by following a path via at most 3 edges will be shown. Nodes -# that lay further from the root node will be omitted. Note that setting this -# option to 1 or 2 may greatly reduce the computation time needed for large -# code bases. Also note that the size of a graph can be further restricted by -# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. - -MAX_DOT_GRAPH_DEPTH = 0 - -# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent -# background. This is disabled by default, because dot on Windows does not -# seem to support this out of the box. Warning: Depending on the platform used, -# enabling this option may lead to badly anti-aliased labels on the edges of -# a graph (i.e. they become hard to read). - -DOT_TRANSPARENT = NO - -# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output -# files in one run (i.e. multiple -o and -T options on the command line). This -# makes dot run faster, but since only newer versions of dot (>1.8.10) -# support this, this feature is disabled by default. - -DOT_MULTI_TARGETS = YES - -# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will -# generate a legend page explaining the meaning of the various boxes and -# arrows in the dot generated graphs. - -GENERATE_LEGEND = YES - -# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will -# remove the intermediate dot files that are used to generate -# the various graphs. - -DOT_CLEANUP = YES diff --git a/replication_listener/README b/replication_listener/README index bc4954456..c3b100468 100644 --- a/replication_listener/README +++ b/replication_listener/README @@ -1,11 +1,4 @@ -This repository was forked from https://launchpad.net/mysql-replication-listener. ---- - -The MySQL Replicant Library is a C++ library for reading MySQL -replication events, either by connecting to a server or by reading -from a file. To handle reading from a server, it includes a very -simple client. - +This code was forked from https://github.com/SponsorPay/mysql-replication-listener Dependencies ------------ @@ -13,24 +6,6 @@ Dependencies You need to have CMake version 2.8 or later and Boost version 1.35.0 or later since Asio is required. -To be able to run the unit tests, you have to have Google Test -installed. Google Test will be automatically installed if cmake is -called as: - - cmake . -DENABLE_DOWNLOADS=1 - - -Directory structure -------------------- - - . - |-- doc Documentation - |-- examples Examples - | `-- mysql2lucene Example application replicating rows to SOLR - |-- include Include files - |-- src Source files for library - `-- tests Unit test files and directories - Building -------- @@ -40,29 +15,3 @@ To build the entire package, it is first necessary to run CMake to build all the cmake . make -j4 -Some of the examples are using third-party software, which can require -extra parameters to be given to CMake. - -If you want to perform an out-of-source build, you can just create a -build directory and execute CMake there. - - mkdir build - cd build - cmake - make -j4 - - -Building the mysql2lucene Example ---------------------------------- - -To build the mysql2lucene example, it is necessary to ensure that the -'FindCLucene.cmake' is in the CMAKE_MODULE_PATH, which on my machine -require me to write: - - cmake . -DCMAKE_MODULE_PATH:String=/usr/share/kde4/apps/cmake/modules - -In addition, there is a bug in the packaging of CLucene on Ubuntu in -that the 'clucene-config.h' file is placed in '/usr/lib/CLucene' but -not in '/usr/include/CLucene', causing compiler failure when -attempting to use CLucene. The 'CMakeLists.txt' file hacks around this -by adding the libraries explicitly, but it seems unnecessary. diff --git a/replication_listener/src/access_method_factory.cpp b/replication_listener/access_method_factory.cpp similarity index 88% rename from replication_listener/src/access_method_factory.cpp rename to replication_listener/access_method_factory.cpp index a3eeb3b36..e02766bbe 100644 --- a/replication_listener/src/access_method_factory.cpp +++ b/replication_listener/access_method_factory.cpp @@ -19,11 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA */ #include "access_method_factory.h" #include "tcp_driver.h" -#include "file_driver.h" using mysql::system::Binary_log_driver; using mysql::system::Binlog_tcp_driver; -using mysql::system::Binlog_file_driver; /** Parse the body of a MySQL URI. @@ -81,22 +79,6 @@ static Binary_log_driver *parse_mysql_url(const char *body, size_t len) } -static Binary_log_driver *parse_file_url(const char *body, size_t length) -{ - /* Find the beginning of the file name */ - if (strncmp(body, "//", 2) != 0) - return 0; - - /* - Since we don't support host information yet, there should be a - slash after the initial "//". - */ - if (body[2] != '/') - return 0; - - return new Binlog_file_driver(body + 2); -} - /** URI parser information. */ @@ -110,7 +92,6 @@ struct Parser { */ static Parser url_parser[] = { { "mysql", parse_mysql_url }, - { "file", parse_file_url }, }; Binary_log_driver * diff --git a/replication_listener/include/access_method_factory.h b/replication_listener/access_method_factory.h similarity index 100% rename from replication_listener/include/access_method_factory.h rename to replication_listener/access_method_factory.h diff --git a/replication_listener/src/basic_content_handler.cpp b/replication_listener/basic_content_handler.cpp similarity index 100% rename from replication_listener/src/basic_content_handler.cpp rename to replication_listener/basic_content_handler.cpp diff --git a/replication_listener/include/basic_content_handler.h b/replication_listener/basic_content_handler.h similarity index 100% rename from replication_listener/include/basic_content_handler.h rename to replication_listener/basic_content_handler.h diff --git a/replication_listener/src/basic_transaction_parser.cpp b/replication_listener/basic_transaction_parser.cpp similarity index 100% rename from replication_listener/src/basic_transaction_parser.cpp rename to replication_listener/basic_transaction_parser.cpp diff --git a/replication_listener/include/basic_transaction_parser.h b/replication_listener/basic_transaction_parser.h similarity index 100% rename from replication_listener/include/basic_transaction_parser.h rename to replication_listener/basic_transaction_parser.h diff --git a/replication_listener/src/binary_log.cpp b/replication_listener/binary_log.cpp similarity index 100% rename from replication_listener/src/binary_log.cpp rename to replication_listener/binary_log.cpp diff --git a/replication_listener/include/binlog_api.h b/replication_listener/binlog_api.h similarity index 97% rename from replication_listener/include/binlog_api.h rename to replication_listener/binlog_api.h index 88fbc6641..b01da48d7 100644 --- a/replication_listener/include/binlog_api.h +++ b/replication_listener/binlog_api.h @@ -33,11 +33,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include "binlog_event.h" #include "binlog_driver.h" #include "tcp_driver.h" -#include "file_driver.h" #include "basic_content_handler.h" -#include "basic_transaction_parser.h" -#include "field_iterator.h" -#include "rowset.h" #include "access_method_factory.h" #include "gtid.h" diff --git a/replication_listener/src/binlog_driver.cpp b/replication_listener/binlog_driver.cpp similarity index 100% rename from replication_listener/src/binlog_driver.cpp rename to replication_listener/binlog_driver.cpp diff --git a/replication_listener/include/binlog_driver.h b/replication_listener/binlog_driver.h similarity index 100% rename from replication_listener/include/binlog_driver.h rename to replication_listener/binlog_driver.h diff --git a/replication_listener/src/binlog_event.cpp b/replication_listener/binlog_event.cpp similarity index 100% rename from replication_listener/src/binlog_event.cpp rename to replication_listener/binlog_event.cpp diff --git a/replication_listener/include/binlog_event.h b/replication_listener/binlog_event.h similarity index 100% rename from replication_listener/include/binlog_event.h rename to replication_listener/binlog_event.h diff --git a/replication_listener/include/bounded_buffer.h b/replication_listener/bounded_buffer.h similarity index 100% rename from replication_listener/include/bounded_buffer.h rename to replication_listener/bounded_buffer.h diff --git a/replication_listener/doc/libreplication.odp b/replication_listener/doc/libreplication.odp deleted file mode 100644 index 8f7c817f6..000000000 Binary files a/replication_listener/doc/libreplication.odp and /dev/null differ diff --git a/replication_listener/examples/CMakeLists.txt b/replication_listener/examples/CMakeLists.txt deleted file mode 100644 index e43df097f..000000000 --- a/replication_listener/examples/CMakeLists.txt +++ /dev/null @@ -1,22 +0,0 @@ -project(examples) -cmake_minimum_required (VERSION 2.6) - -link_directories(${PROJECT_BUILD_DIR}/lib) -include_directories(${PROJECT_BUILD_DIR}/include) - -# Find MySQL client library and header files -find_path(MySQL_INCLUDE_DIR mysql.h - /usr/local/include/mysql /usr/include/mysql) -include_directories(${MySQL_INCLUDE_DIR}) -include_directories(../../table_replication_consistency) -include_directories(../../utils) - - -# Create build rules for all the simple examples that only require a -# single file. -foreach(prog basic-1 basic-2 jan_test) - ADD_EXECUTABLE(${prog} ${prog}.cpp /usr/local/mysql/lib/libmysqld.a) - TARGET_LINK_LIBRARIES(${prog} replication boost_system boost_thread pthread aio crypt ${MySQL_LIBRARY}) -endforeach() - -add_subdirectory(mysql2lucene EXCLUDE_FROM_ALL) diff --git a/replication_listener/examples/basic-1.cpp b/replication_listener/examples/basic-1.cpp deleted file mode 100644 index 67a687e4f..000000000 --- a/replication_listener/examples/basic-1.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "binlog_api.h" - -/** - @file basic-1 - @author Mats Kindahl - - This is a basic example that just opens a binary log either from a - file or a server and print out what events are found. It uses a - simple event loop and checks information in the events using a - switch. - */ - -using mysql::Binary_log; -using mysql::system::create_transport; - -int main(int argc, char** argv) { - - if (argc != 2) { - std::cerr << "Usage: basic-2 " << std::endl; - exit(2); - } - - Binary_log binlog(create_transport(argv[1])); - binlog.connect(); - - Binary_log_event *event; - - while (true) { - int result = binlog.wait_for_next_event(&event); - if (result == ERR_EOF) - break; - std::cout << "Found event of type " - << event->get_event_type() - << std::endl; - } -} diff --git a/replication_listener/examples/basic-2.cpp b/replication_listener/examples/basic-2.cpp deleted file mode 100644 index 79f724c95..000000000 --- a/replication_listener/examples/basic-2.cpp +++ /dev/null @@ -1,94 +0,0 @@ -#include "binlog_api.h" - -#include -#include -#include - -/* - Here is a basic system using the event loop to fetch context events - and store them in an associative array. - */ -using mysql::Binary_log; -using mysql::system::create_transport; -using mysql::system::get_event_type_str; -using mysql::User_var_event; - -/** - * Class to maintain variable values. - */ -template -class Save_variables : public Content_handler { -public: - Save_variables(AssociativeContainer& container) - : m_var(container) - { - } - - Binary_log_event *process_event(User_var_event *event) { - m_var[event->name] = event->value; - return NULL; - } - -private: - AssociativeContainer &m_var; -}; - - -template -class Replace_variables : public Content_handler { -public: - Replace_variables(AssociativeContainer& variables) - : m_var(variables) - { - } - - Binary_log_event *process_event(Query_event *event) { - std::string *query = &event->query; - size_t start, end = 0; - while (true) { - start = query->find_first_of("@", end); - if (start == std::string::npos) - break; - end = query->find_first_not_of("abcdefghijklmnopqrstuvwxyz", start+1); - std::string key = query->substr(start + 1, end - start - 1); - query->replace(start, end - start, "'" + m_var[key] + "'"); - } - return event; - } -private: - AssociativeContainer &m_var; -}; - - -int main(int argc, char** argv) { - typedef std::map Map; - - if (argc != 2) { - std::cerr << "Usage: basic-2 " << std::endl; - exit(2); - } - - Binary_log binlog(create_transport(argv[1])); - binlog.connect(); - - binlog.set_position(4); - - Map variables; - Save_variables save_variables(variables); - binlog.content_handler_pipeline()->push_back(&save_variables); - Replace_variables replace_variables(variables); - binlog.content_handler_pipeline()->push_back(&replace_variables); - - while (true) { - Binary_log_event *event; - int result = binlog.wait_for_next_event(&event); - if (result == ERR_EOF) - break; - switch (event->get_event_type()) { - case QUERY_EVENT: - std::cout << static_cast(event)->query - << std::endl; - break; - } - } -} diff --git a/replication_listener/examples/jan_test.cpp b/replication_listener/examples/jan_test.cpp deleted file mode 100644 index f4dde96eb..000000000 --- a/replication_listener/examples/jan_test.cpp +++ /dev/null @@ -1,218 +0,0 @@ -#include "binlog_api.h" -#include "my_pthread.h" -#include "listener_exception.h" -#include "table_replication_consistency.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using mysql::Binary_log; -using mysql::system::create_transport; -using namespace std; -using namespace mysql::system; - -static char* server_options[] = { - "jan_test", - "--datadir=/tmp/", - "--skip-innodb", - "--default-storage-engine=myisam", - NULL -}; - -const int num_elements = (sizeof(server_options) / sizeof(char *)) - 1; - -static char* server_groups[] = { - "libmysqld_server", - "libmysqld_client", - "libmysqld_server", - "libmysqld_server", NULL -}; - -void* binlog_reader(void * arg) -{ - replication_listener_t *rlt = (replication_listener_t*)arg; - char *uri = rlt->server_url; - map tid2tname; - map::iterator tb_it; - pthread_t id = pthread_self(); - string database_dot_table; - const char* server_type; - Gtid gtid(); - - try { - Binary_log binlog(create_transport(uri)); - binlog.connect(); - - server_type = binlog.get_mysql_server_type_str(); - - cout << "Server " << uri << " type: " << server_type << endl; - - Binary_log_event *event; - - while (true) { - Log_event_header *lheader; - - int result = binlog.wait_for_next_event(&event); - - if (result == ERR_EOF) - break; - - lheader = event->header(); - - switch(event->get_event_type()) { - - case QUERY_EVENT: { - Query_event *qevent = dynamic_cast(event); - - std::cout << "Thread: " << id << " server_id " << lheader->server_id - << " position " << lheader->next_position << " : Found event of type " - << event->get_event_type() - << " txt " << get_event_type_str(event->get_event_type()) - << " query " << qevent->query << " db " << qevent->db_name - << std::endl; - break; - } - - case GTID_EVENT_MARIADB: - case GTID_EVENT_MYSQL: { - Gtid_event *gevent = dynamic_cast(event); - - std::cout << "Thread: " << id << " server_id " << lheader->server_id - << " position " << lheader->next_position << " : Found event of type " - << event->get_event_type() - << " txt " << get_event_type_str(event->get_event_type()) - << " GTID " << std::string((char *)gevent->m_gtid.get_gtid()) - << " GTID " << gevent->m_gtid.get_string() - << std::endl; - - break; - } - - case TABLE_MAP_EVENT: { - Table_map_event *table_map_event= dynamic_cast(event); - database_dot_table= table_map_event->db_name; - database_dot_table.append("."); - database_dot_table.append(table_map_event->table_name); - tid2tname[table_map_event->table_id]= database_dot_table; - break; - } - - case WRITE_ROWS_EVENT: - case UPDATE_ROWS_EVENT: - case DELETE_ROWS_EVENT: { - Row_event *revent = dynamic_cast(event); - tb_it= tid2tname.begin(); - tb_it= tid2tname.find(revent->table_id); - if (tb_it != tid2tname.end()) - { - database_dot_table= tb_it->second; - } - - std::cout << "Thread: " << id << " server_id " << lheader->server_id - << " position " << lheader->next_position << " : Found event of type " - << event->get_event_type() - << " txt " << get_event_type_str(event->get_event_type()) - << " table " << revent->table_id - << " tb " << database_dot_table - << std::endl; - break; - - } - default: - break; - } // switch - } // while - } // try - catch(ListenerException e) - { - std::cerr << "Listener exception: " << e.what() << std::endl; - } - catch(boost::system::error_code e) - { - std::cerr << "Listener system error: " << e.message() << std::endl; - } - // Try and catch all exceptions - catch(std::exception const& e) - { - std::cerr << "Listener other error: " << e.what() << std::endl; - } - // Rest of them - catch(...) - { - std::cerr << "Unknown exception: " << std::endl; - // Re-Throw this one. - // It was not handled so you want to make sure it is handled correctly by - // the OS. So just allow the exception to keep propagating. - throw; - } - - pthread_exit(NULL); - return NULL; - -} - -int main(int argc, char** argv) { - - int number_of_args = argc; - int i=0,k=0; - pthread_t *tid=NULL; - char *uri; - replication_listener_t *mrl; - int err=0; - - tid = (pthread_t*)malloc(sizeof(pthread_t) * argc); - mrl = (replication_listener_t*)calloc(argc, sizeof(replication_listener_t)); - - if (argc < 2) { - std::cerr << "Usage: basic-2 " << std::endl; - exit(2); - } - - if (mysql_library_init(num_elements, server_options, server_groups)) { - std::cerr << "Failed to init MySQL server" << std::endl; - exit(1); - } - - argc =0; - while(argc != number_of_args) - { - uri= argv[argc++]; - - if ( strncmp("mysql://", uri, 8) == 0) { - - mrl[i].server_url = uri; - - if (argc == 1) { - mrl[i].is_master = 1; - } - - err = pthread_create(&(tid[i++]), NULL, &binlog_reader, (void *)&mrl[i]); - - if (err ) { - perror(NULL); - break; - } - - } - }//end of outer while loop - - for(k=0; k < i; k++) - { - err = pthread_join(tid[k], (void **)&(mrl[k])); - - if (err) { - perror(NULL); - } - } - - exit(0); - -} diff --git a/replication_listener/examples/mysql2lucene/CMakeLists.txt b/replication_listener/examples/mysql2lucene/CMakeLists.txt deleted file mode 100644 index 0f40b6763..000000000 --- a/replication_listener/examples/mysql2lucene/CMakeLists.txt +++ /dev/null @@ -1,9 +0,0 @@ -project (mysql2lucene) - -find_package(CLucene) - -add_executable(mysql2lucene - main.cpp table_delete.cpp table_index.cpp - table_insert.cpp table_update.cpp) -include_directories(${CLUCENE_INCLUDE_DIR} ${CLUCENE_LIBRARY_DIR}) -target_link_libraries(mysql2lucene ${CLUCENE_LIBRARY} replication_static) diff --git a/replication_listener/examples/mysql2lucene/globals.h b/replication_listener/examples/mysql2lucene/globals.h deleted file mode 100644 index fcb847107..000000000 --- a/replication_listener/examples/mysql2lucene/globals.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: globals.h - * Author: thek - * - * Created on den 15 juni 2010, 09:37 - */ - -#ifndef _GLOBALS_H -#define _GLOBALS_H -#include -#include "binlog_api.h" -extern std::string cl_index_file; - -#endif /* _GLOBALS_H */ diff --git a/replication_listener/examples/mysql2lucene/main.cpp b/replication_listener/examples/mysql2lucene/main.cpp deleted file mode 100644 index 2f04161d8..000000000 --- a/replication_listener/examples/mysql2lucene/main.cpp +++ /dev/null @@ -1,212 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: main.cpp - * Author: thek - * - * Created on den 12 maj 2010, 14:47 - */ - -#include -#include -#include "binlog_api.h" - -#include "table_update.h" -#include "table_delete.h" -#include "table_insert.h" - -#include "table_index.h" - -using mysql::system::create_transport; -using mysql::Binary_log; - -std::string cl_index_file; - -class Incident_handler : public mysql::Content_handler -{ -public: - Incident_handler() : mysql::Content_handler() {} - - Binary_log_event *process_event(mysql::Incident_event *incident) - { - std::cout << "Event type: " - << mysql::system::get_event_type_str(incident->get_event_type()) - << " length: " << incident->header()->event_length - << " next pos: " << incident->header()->next_position - << std::endl; - std::cout << "type= " - << (unsigned)incident->type - << " message= " - << incident->message - << std::endl - << std::endl; - /* Consume the event */ - delete incident; - return 0; - } -}; - -class Applier : public mysql::Content_handler -{ -public: - Applier(Table_index *index) - { - m_table_index= index; - } - - mysql::Binary_log_event *process_event(mysql::Row_event *rev) - { - boost::uint64_t table_id= rev->table_id; - Int2event_map::iterator ti_it= m_table_index->find(table_id); - if (ti_it == m_table_index->end ()) - { - std::cout << "Table id " - << table_id - << " was not registered by any preceding table map event." - << std::endl; - return rev; - } - /* - Each row event contains multiple rows and fields. The Row_iterator - allows us to iterate one row at a time. - */ - mysql::Row_event_set rows(rev, ti_it->second); - /* - Create a fuly qualified table name - */ - std::ostringstream os; - os << ti_it->second->db_name << '.' << ti_it->second->table_name; - mysql::Row_event_set::iterator it= rows.begin(); - do { - mysql::Row_of_fields fields= *it; - if (rev->get_event_type() == mysql::WRITE_ROWS_EVENT) - table_insert(os.str(),fields); - if (rev->get_event_type() == mysql::UPDATE_ROWS_EVENT) - { - ++it; - mysql::Row_of_fields fields2= *it; - table_update(os.str(),fields,fields2); - } - if (rev->get_event_type() == mysql::DELETE_ROWS_EVENT) - table_delete(os.str(),fields); - } while (++it != rows.end()); - - /* Consume the event */ - delete rev; - return 0; - } -private: - Table_index *m_table_index; - -}; - -/* - * - */ -int main(int argc, char** argv) -{ - if (argc != 3) - { - fprintf(stderr,"Usage:\n\nmysql2lucene URL\n\nExample:\n\nmysql2lucene mysql://root@127.0.0.1:3306 myindexfile\n\n"); - return (EXIT_FAILURE); - } - - Binary_log binlog(create_transport(argv[1])); - - - cl_index_file.append (argv[2]); - - /* - Attach a custom event content handlers - */ - Incident_handler incident_hndlr; - Table_index table_event_hdlr; - Applier replay_hndlr(&table_event_hdlr); - - binlog.content_handler_pipeline()->push_back(&table_event_hdlr); - binlog.content_handler_pipeline()->push_back(&incident_hndlr); - binlog.content_handler_pipeline()->push_back(&replay_hndlr); - - if (binlog.connect()) - { - fprintf(stderr,"Can't connect to the master.\n"); - return (EXIT_FAILURE); - } - - binlog.set_position("searchbin.000001", 4); - - bool quit= false; - while(!quit) - { - /* - Pull events from the master. This is the heart beat of the event listener. - */ - Binary_log_event *event; - binlog.wait_for_next_event(&event); - - /* - Print the event - */ - std::cout << "Event type: " - << mysql::system::get_event_type_str(event->get_event_type()) - << " length: " << event->header()->event_length - << " next pos: " << event->header()->next_position - << std::endl; - - /* - Perform a special action based on event type - */ - - switch(event->header()->type_code) - { - case mysql::QUERY_EVENT: - { - const mysql::Query_event *qev= static_cast(event); - std::cout << "query= " - << qev->query - << " db= " - << qev->db_name - << std::endl - << std::endl; - if (qev->query.find("DROP TABLE REPLICATION_LISTENER") != std::string::npos) - { - quit= true; - } - } - break; - - case mysql::ROTATE_EVENT: - { - mysql::Rotate_event *rot= static_cast(event); - std::cout << "filename= " - << rot->binlog_file.c_str() - << " pos= " - << rot->binlog_pos - << std::endl - << std::endl; - } - break; - - } // end switch - delete event; - } // end loop - return (EXIT_SUCCESS); -} diff --git a/replication_listener/examples/mysql2lucene/table_delete.cpp b/replication_listener/examples/mysql2lucene/table_delete.cpp deleted file mode 100644 index c5de729c9..000000000 --- a/replication_listener/examples/mysql2lucene/table_delete.cpp +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "globals.h" -#include "table_delete.h" - -#include - -CL_NS_USE(index) -CL_NS_USE(util) -CL_NS_USE(store) -CL_NS_USE(search) -CL_NS_USE(document) -CL_NS_USE(queryParser) -CL_NS_USE(analysis) -CL_NS_USE2(analysis,standard) - -void table_delete(std::string table_name, mysql::Row_of_fields &fields) -{ - - mysql::Row_of_fields::iterator field_it= fields.begin(); - /* - * First column must be an integer key value - */ - if (!(field_it->type() == mysql::system::MYSQL_TYPE_LONG || - field_it->type() == mysql::system::MYSQL_TYPE_SHORT || - field_it->type() == mysql::system::MYSQL_TYPE_LONGLONG)) - return; - - int field_id= 0; - std::string key; - std::string combined_key; - mysql::Converter converter; - converter.to(key, *field_it); - combined_key.append (table_name); - combined_key.append ("_"); - combined_key.append (key); - do { - /* - Each row contains a vector of Value objects. The converter - allows us to transform the value into another - representation. - Only index fields which might contain searchable information. - */ - if (field_it->type() == mysql::system::MYSQL_TYPE_VARCHAR || - field_it->type() == mysql::system::MYSQL_TYPE_MEDIUM_BLOB || - field_it->type() == mysql::system::MYSQL_TYPE_BLOB) - { - std::string str; - converter.to(str, *field_it); - StandardAnalyzer an; - IndexReader *reader; - /* - * Create a Lucene index writer - */ - if ( IndexReader::indexExists(cl_index_file.c_str()) ) - { - if ( IndexReader::isLocked(cl_index_file.c_str()) ) - { - std::cout << "Index was locked; unlocking it." - << std::endl; - IndexReader::unlock(cl_index_file.c_str()); - } - reader= IndexReader::open(cl_index_file.c_str()); - } - - std::cout << "Deleting index '" - << combined_key - << "'" << std::endl; - TCHAR *combined_key_w= STRDUP_AtoW(combined_key.c_str ()); - Term uniqueKey(_T("id"),combined_key_w); - reader->deleteDocuments(&uniqueKey); - delete combined_key_w; - reader->close(); - delete reader; - break; - } - } while(++field_it != fields.end()); -} diff --git a/replication_listener/examples/mysql2lucene/table_delete.h b/replication_listener/examples/mysql2lucene/table_delete.h deleted file mode 100644 index 68443d4ff..000000000 --- a/replication_listener/examples/mysql2lucene/table_delete.h +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: table_delete.h - * Author: thek - * - * Created on den 17 juni 2010, 14:28 - */ - -#ifndef _TABLE_DELETE_H -#define _TABLE_DELETE_H -#include -#include "binlog_api.h" - -void table_delete(std::string table_name, mysql::Row_of_fields &fields); - -#endif /* _TABLE_DELETE_H */ diff --git a/replication_listener/examples/mysql2lucene/table_index.cpp b/replication_listener/examples/mysql2lucene/table_index.cpp deleted file mode 100644 index efe9369d0..000000000 --- a/replication_listener/examples/mysql2lucene/table_index.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "table_index.h" - -mysql::Binary_log_event *Table_index::process_event(mysql::Table_map_event *tm) -{ - if (find(tm->table_id) == end()) - insert(Event_index_element(tm->table_id,tm)); - - /* Consume this event so it won't be deallocated beneith our feet */ - return 0; -} - -Table_index::~Table_index () -{ - Int2event_map::iterator it= begin(); - do - { - delete it->second; - } while( ++it != end()); -} - -int Table_index::get_table_name(int table_id, std::string out) -{ - iterator it; - if ((it= find(table_id)) == end()) - { - std::stringstream os; - os << "unknown_table_" << table_id; - out.append(os.str()); - return 1; - } - - out.append(it->second->table_name); - return 0; -} diff --git a/replication_listener/examples/mysql2lucene/table_index.h b/replication_listener/examples/mysql2lucene/table_index.h deleted file mode 100644 index 4b89441d6..000000000 --- a/replication_listener/examples/mysql2lucene/table_index.h +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: table_index.h - * Author: thek - * - * Created on den 8 september 2010, 13:47 - */ - -#ifndef TABLE_INDEX_H -#define TABLE_INDEX_H -#include "binlog_event.h" -#include -#include "basic_content_handler.h" - -typedef std::pair Event_index_element; -typedef std::map Int2event_map; - -class Table_index : public mysql::Content_handler, public Int2event_map -{ -public: - mysql::Binary_log_event *process_event(mysql::Table_map_event *tm); - - ~Table_index(); - - int get_table_name(int table_id, std::string out); - -}; - - -#endif /* TABLE_INDEX_H */ diff --git a/replication_listener/examples/mysql2lucene/table_insert.cpp b/replication_listener/examples/mysql2lucene/table_insert.cpp deleted file mode 100644 index 22548ea24..000000000 --- a/replication_listener/examples/mysql2lucene/table_insert.cpp +++ /dev/null @@ -1,152 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "globals.h" -#include "table_insert.h" - -#include -#include -#include - -CL_NS_USE(index) -CL_NS_USE(util) -CL_NS_USE(store) -CL_NS_USE(search) -CL_NS_USE(document) -CL_NS_USE(queryParser) -CL_NS_USE(analysis) -CL_NS_USE2(analysis,standard) - -void table_insert(std::string table_name, mysql::Row_of_fields &fields) -{ - mysql::Row_of_fields::iterator field_it= fields.begin(); - /* - * First column must be an integer key value - */ - if (!(field_it->type() == mysql::system::MYSQL_TYPE_LONG || - field_it->type() == mysql::system::MYSQL_TYPE_SHORT || - field_it->type() == mysql::system::MYSQL_TYPE_LONGLONG)) - return; - - Document *doc= new Document(); - IndexWriter* writer = NULL; - StandardAnalyzer an; - mysql::Converter converter; - bool found_searchable= false; - int col= 0; - TCHAR *w_table_name; - TCHAR *w_str; - TCHAR *w_key_str; - TCHAR *w_combined_key; - std::string aggstr; - - /* - * Create a Lucene index writer - */ - if ( IndexReader::indexExists(cl_index_file.c_str()) ) - { - if ( IndexReader::isLocked(cl_index_file.c_str()) ) - { - printf("Index was locked... unlocking it.\n"); - IndexReader::unlock(cl_index_file.c_str()); - } - writer = new IndexWriter( cl_index_file.c_str(), &an, false); - }else{ - writer = new IndexWriter( cl_index_file.c_str() ,&an, true); - } - writer->setMaxFieldLength(IndexWriter::DEFAULT_MAX_FIELD_LENGTH); - - /* - * Save the presumed table key for later use when we discover if this row - * should be indexed. - */ - std::string key; - converter.to(key, *field_it); - - do { - /* - Each row contains a vector of Value objects. The converter - allows us to transform the value into another - representation. - Only index fields which might contain searchable information. - */ - if (field_it->type() == mysql::system::MYSQL_TYPE_VARCHAR || - field_it->type() == mysql::system::MYSQL_TYPE_MEDIUM_BLOB || - field_it->type() == mysql::system::MYSQL_TYPE_BLOB) - { - std::string str; - converter.to(str, *field_it); - if (!found_searchable) - { - std::string combined_key; - combined_key.append(table_name); - combined_key.append("_"); - combined_key.append(key); - w_table_name= STRDUP_AtoW(table_name.c_str()); - Field *table_field= new Field(_T("table"),w_table_name, Field::STORE_YES | Field::INDEX_UNTOKENIZED); - doc->add( *table_field ); - found_searchable= true; - w_key_str= STRDUP_AtoW(key.c_str()); - Field *key_field= new Field(_T("row_id"),w_key_str, Field::STORE_YES | Field::INDEX_UNTOKENIZED); - doc->add(*key_field); - w_combined_key= STRDUP_AtoW(combined_key.c_str()); - Field *combined_key_field= new Field(_T("id"),w_combined_key, Field::STORE_YES | Field::INDEX_UNTOKENIZED); - doc->add(*combined_key_field); - } - /* - * Aggregate all searchable information into one string. The key is the - * qualified table name. - */ - aggstr.append(" "); // This separator helps us loosing important tokens. - aggstr.append(str); - ++col; - } - } while(++field_it != fields.end()); - if (found_searchable) - { - std::cout << "Indexing " - << aggstr.length() - << " characters in table '" - << table_name - << "' using key value '" - << key - << "'." - << std::endl; - std::cout.flush (); - w_str= STRDUP_AtoW(aggstr.c_str()); - Field *content_field= new Field(_T("text"),w_str, Field::STORE_YES | Field::INDEX_TOKENIZED); - doc->add( *content_field ); - } - writer->addDocument(doc); - writer->close(); - - /* - * Clean up dynamic allocations during indexing - */ - if (found_searchable) - { - free(w_table_name); - free(w_str); - free(w_key_str); - free(w_combined_key); - } - delete(doc); - delete(writer); -} diff --git a/replication_listener/examples/mysql2lucene/table_insert.h b/replication_listener/examples/mysql2lucene/table_insert.h deleted file mode 100644 index a0a210f36..000000000 --- a/replication_listener/examples/mysql2lucene/table_insert.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: table_insert.h - * Author: thek - * - * Created on den 15 juni 2010, 09:34 - */ - -#ifndef _TABLE_INSERT_H -#define _TABLE_INSERT_H - -#include -#include "binlog_api.h" - -void table_insert(std::string table_name, mysql::Row_of_fields &fields); - -#endif /* _TABLE_INSERT_H */ diff --git a/replication_listener/examples/mysql2lucene/table_update.cpp b/replication_listener/examples/mysql2lucene/table_update.cpp deleted file mode 100644 index 60857a1d0..000000000 --- a/replication_listener/examples/mysql2lucene/table_update.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "table_update.h" -#include "table_insert.h" -#include "table_delete.h" - -void table_update(std::string table_name, mysql::Row_of_fields &old_fields, mysql::Row_of_fields &new_fields) -{ - /* - Find previous entry and delete it. - */ - table_delete(table_name, old_fields); - - /* - Insert new entry. - */ - table_insert(table_name, new_fields); - -} diff --git a/replication_listener/examples/mysql2lucene/table_update.h b/replication_listener/examples/mysql2lucene/table_update.h deleted file mode 100644 index 6ef6c910d..000000000 --- a/replication_listener/examples/mysql2lucene/table_update.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -/* - * File: table_update.h - * Author: thek - * - * Created on den 17 juni 2010, 14:27 - */ - -#ifndef _TABLE_UPDATE_H -#define _TABLE_UPDATE_H -#include -#include "binlog_api.h" -void table_update(std::string table_name, mysql::Row_of_fields &old_fields, mysql::Row_of_fields &new_fields); - -#endif /* _TABLE_UPDATE_H */ diff --git a/replication_listener/examples/test.sql b/replication_listener/examples/test.sql deleted file mode 100644 index 1e937e44c..000000000 --- a/replication_listener/examples/test.sql +++ /dev/null @@ -1,35 +0,0 @@ -DROP DATABASE NEW1; -DROP DATABASE NEW2; -CREATE DATABASE NEW1; -CREATE DATABASE NEW2; -USE NEW1; -CREATE TABLE NEW_TEST1(A INT NOT NULL PRIMARY KEY, B INT) ENGINE=INNODB; -CREATE TABLE NEW_TEST2(A INT NOT NULL PRIMARY KEY, B INT) ENGINE=INNODB; -USE NEW2; -CREATE TABLE NEW_TEST3(A INT NOT NULL PRIMARY KEY, B INT) ENGINE=INNODB; -CREATE TABLE NEW_TEST4(A INT NOT NULL PRIMARY KEY, B INT) ENGINE=INNODB; -USE NEW1; -INSERT INTO NEW_TEST1 VALUES (1,1),(2,2)(3,3),(4,4); -INSERT INTO NEW_TEST1 VALUES (5,5),(6,2)(7,3),(8,4); -INSERT INTO NEW_TEST2 VALUES (1,1),(2,2)(3,3),(4,4); -INSERT INTO NEW_TEST2 VALUES (5,5),(6,2)(7,3),(8,4); -INSERT INTO NEW_TEST1 VALUES (9,9); -USE NEW2; -INSERT INTO NEW_TEST3 VALUES (1,1),(2,2)(3,3),(4,4); -INSERT INTO NEW_TEST3 VALUES (5,5),(6,2)(7,3),(8,4); -INSERT INTO NEW_TEST4 VALUES (1,1),(2,2)(3,3),(4,4); -INSERT INTO NEW_TEST4 VALUES (5,5),(6,2)(7,3),(8,4); -INSERT INTO NEW_TEST4 VALUES (9,9); -COMMIT; -USE NEW1; -UPDATE NEW_TEST1 SET B = B + 1; -USE NEW2; -UPDATE NEW_TEST4 SET B = B + 1; -COMMIT; -DELETE FROM NEW1.NEW_TEST2 WHERE A = 3; -DELETE FROM NEW2.NEW_TEST3 WHERE A = 3; -UPDATE NEW1.NEW_TEST1 SET B = B + 5 WHERE A = 4; -UPDATE NEW2.NEW_TEST4 SET B = B + 5 WHERE A = 4; -USE NEW1; -DROP TABLE NEW_TEST1; -DROP TABLE NEW2.NEW_TEST3; diff --git a/replication_listener/include/field_iterator.h b/replication_listener/field_iterator.h similarity index 95% rename from replication_listener/include/field_iterator.h rename to replication_listener/field_iterator.h index 3e7c01a19..10e7b6b4d 100644 --- a/replication_listener/include/field_iterator.h +++ b/replication_listener/field_iterator.h @@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include "value.h" #include "row_of_fields.h" #include +#include using namespace mysql; @@ -31,7 +32,7 @@ namespace mysql { bool is_null(unsigned char *bitmap, int index); -int lookup_metadata_field_size(enum mysql::system::enum_field_types field_type); +int lookup_metadata_field_size(enum enum_field_types field_type); boost::uint32_t extract_metadata(const Table_map_event *map, int col_no); template @@ -88,7 +89,7 @@ size_t Row_event_iterator::fields(Iterator_value_type& fiel ++row_field_col_index; unsigned int type= m_table_map->columns[col_no]&0xFF; boost::uint32_t metadata= extract_metadata(m_table_map, col_no); - mysql::Value val((enum mysql::system::enum_field_types)type, + mysql::Value val((enum enum_field_types)type, metadata, (const char *)&m_row_event->row[field_offset]); if (is_null((unsigned char *)&nullbits[0], col_no )) @@ -152,7 +153,7 @@ Row_event_iterator< Iterator_value_type >& for(unsigned col_no=0; col_no < m_table_map->columns.size(); ++col_no) { ++row_field_col_index; - mysql::Value val((enum mysql::system::enum_field_types)m_table_map->columns[col_no], + mysql::Value val((enum enum_field_types)m_table_map->columns[col_no], m_table_map->metadata[col_no], (const char *)&m_row_event->row[m_field_offset]); if (!is_null((unsigned char *)&nullbits[0], col_no)) diff --git a/replication_listener/src/gtid.cpp b/replication_listener/gtid.cpp similarity index 100% rename from replication_listener/src/gtid.cpp rename to replication_listener/gtid.cpp diff --git a/replication_listener/include/gtid.h b/replication_listener/gtid.h similarity index 100% rename from replication_listener/include/gtid.h rename to replication_listener/gtid.h diff --git a/replication_listener/homebrew/mysql-replication-listener.rb b/replication_listener/homebrew/mysql-replication-listener.rb deleted file mode 100644 index d8706c2ef..000000000 --- a/replication_listener/homebrew/mysql-replication-listener.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'formula' - -class MysqlReplicationListener < Formula - url 'https://bitbucket.org/winebarrel/mysql-replication-listener.git', :tag => '0.0.47-10' - homepage 'https://bitbucket.org/winebarrel/mysql-replication-listener' - - depends_on 'cmake' - depends_on 'boost' - #depends_on 'openssl' - - def install - system 'cmake', '.' - system 'make' - system 'make install' - end -end diff --git a/replication_listener/include/file_driver.h b/replication_listener/include/file_driver.h deleted file mode 100644 index d45396519..000000000 --- a/replication_listener/include/file_driver.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#ifndef _FILE_DRIVER_H -#define _FILE_DRIVER_H - -#include -#include -#include -#include -#include - -#include "binlog_api.h" -#include "binlog_driver.h" -#include "protocol.h" - -#define MAGIC_NUMBER_SIZE 4 - -namespace mysql { -namespace system { - -class Binlog_file_driver - : public Binary_log_driver -{ -public: - template - Binlog_file_driver(const TFilename& filename = TFilename(), - unsigned int offset = 0) - : Binary_log_driver(filename, offset) - { - } - - int connect(Gtid gtid = Gtid()); - int disconnect(); - int wait_for_next_event(mysql::Binary_log_event **event); - int set_position(const std::string &str, unsigned long position); - int get_position(std::string *str, unsigned long *position); - - int set_position_gtid(const Gtid gtid) - { - return 0; // TODO - } - - int fetch_server_version(const std::string& user, - const std::string& passwd, - const std::string& host, - long port) - { - return 0; // TODO - } - - void shutdown() - { - // TODO - } - -private: - - unsigned long m_binlog_file_size; - - /* - Bytes that has been read so for from the file. - Updated after every event is read. - */ - unsigned long m_bytes_read; - - std::ifstream m_binlog_file; - - Log_event_header m_event_log_header; -}; - -} // namespace mysql::system -} // namespace mysql - -#endif /* _FILE_DRIVER_H */ diff --git a/replication_listener/include/utilities.h b/replication_listener/include/utilities.h deleted file mode 100644 index 76689438d..000000000 --- a/replication_listener/include/utilities.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#ifndef _UTILITIES_H -#define _UTILITIES_H - -#include "value.h" -#include "protocol.h" - - -using namespace mysql; - -namespace mysql { - -typedef enum -{ - Q_FLAGS2_CODE= 0, - Q_SQL_MODE_CODE, - Q_CATALOG_CODE, - Q_AUTO_INCREMENT, - Q_CHARSET_CODE, - Q_TIME_ZONE_CODE, - Q_CATALOG_NZ_CODE, - Q_LC_TIME_NAMES_CODE, - Q_CHARSET_DATABASE_CODE, - Q_TABLE_MAP_FOR_UPDATE_CODE, - Q_MASTER_DATA_WRITTEN_CODE, - Q_INVOKER -} enum_var_types; - -int server_var_decoder (std::map *my_var_map, - std::vector variables); - -} - -#endif /* _UTILITIES_H */ diff --git a/replication_listener/install_manifest.txt b/replication_listener/install_manifest.txt index ee39d2da0..27c29c3c4 100644 --- a/replication_listener/install_manifest.txt +++ b/replication_listener/install_manifest.txt @@ -1,21 +1,3 @@ -/usr/local/./include/bounded_buffer.h -/usr/local/./include/protocol.h -/usr/local/./include/basic_content_handler.h -/usr/local/./include/resultset_iterator.h -/usr/local/./include/gtid.h -/usr/local/./include/binlog_driver.h -/usr/local/./include/value.h -/usr/local/./include/binlog_event.h -/usr/local/./include/field_iterator.h -/usr/local/./include/basic_transaction_parser.h -/usr/local/./include/utilities.h -/usr/local/./include/access_method_factory.h -/usr/local/./include/listener_exception.h -/usr/local/./include/tcp_driver.h -/usr/local/./include/binlog_api.h -/usr/local/./include/rowset.h -/usr/local/./include/file_driver.h -/usr/local/./include/row_of_fields.h /usr/local/lib/libreplication.so.0.1 /usr/local/lib/libreplication.so.1 /usr/local/lib/libreplication.so diff --git a/replication_listener/include/listener_exception.h b/replication_listener/listener_exception.h similarity index 100% rename from replication_listener/include/listener_exception.h rename to replication_listener/listener_exception.h diff --git a/replication_listener/mysql-replication-listener.spec b/replication_listener/mysql-replication-listener.spec deleted file mode 100644 index 922d32bb8..000000000 --- a/replication_listener/mysql-replication-listener.spec +++ /dev/null @@ -1,67 +0,0 @@ -%define _libdir /usr/lib - -Name: mysql-replication-listener -Version: 0.0.47 -Release: 10%{?dist} -Summary: A STL/Boost based C++ library used for connecting to a MySQL server and process the replication stream as a slave. - -Group: Development/Libraries -License: GNU GPL v2 -URL: https://bitbucket.org/winebarrel/mysql-replication-listener -#URL: https://launchpad.net/mysql-replication-listener -Source0: mysql-replication-listener.tar.gz -# git clone https://bitbucket.org/winebarrel/mysql-replication-listener.git -# cd mysql-replication-listener/ -# git checkout refs/tags/0.0.47-10 -# cd .. -# tar zcf mysql-replication-listener.tar.gz mysql-replication-listener/ -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -BuildRequires: gcc-c++, make, cmake, boost-devel, openssl-devel -Requires: glibc, libstdc++, zlib, boost-devel, openssl - -%description -The MySQL Replicant Library is a C++ library for reading MySQL -replication events, either by connecting to a server or by reading -from a file. To handle reading from a server, it includes a very -simple client. - -%prep -%setup -q -n %{name} - -%build -%cmake -make %{?_smp_mflags} - -%install -rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT - -%clean -rm -rf $RPM_BUILD_ROOT - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%files -%defattr(-,root,root,-) -%{_includedir}/access_method_factory.h -%{_includedir}/basic_content_handler.h -%{_includedir}/basic_transaction_parser.h -%{_includedir}/binlog_api.h -%{_includedir}/binlog_driver.h -%{_includedir}/binlog_event.h -%{_includedir}/bounded_buffer.h -%{_includedir}/field_iterator.h -%{_includedir}/file_driver.h -%{_includedir}/protocol.h -%{_includedir}/resultset_iterator.h -%{_includedir}/row_of_fields.h -%{_includedir}/rowset.h -%{_includedir}/tcp_driver.h -%{_includedir}/utilities.h -%{_includedir}/value.h -%{_libdir}/libreplication.a -%{_libdir}/libreplication.so -%{_libdir}/libreplication.so.0.1 -%{_libdir}/libreplication.so.1 diff --git a/replication_listener/src/protocol.cpp b/replication_listener/protocol.cpp similarity index 100% rename from replication_listener/src/protocol.cpp rename to replication_listener/protocol.cpp diff --git a/replication_listener/include/protocol.h b/replication_listener/protocol.h similarity index 99% rename from replication_listener/include/protocol.h rename to replication_listener/protocol.h index f576a0852..567d3aa37 100644 --- a/replication_listener/include/protocol.h +++ b/replication_listener/protocol.h @@ -23,9 +23,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include #include #include "binlog_event.h" -#include -#include -#include using boost::asio::ip::tcp; namespace mysql { diff --git a/replication_listener/src/resultset_iterator.cpp b/replication_listener/resultset_iterator.cpp similarity index 100% rename from replication_listener/src/resultset_iterator.cpp rename to replication_listener/resultset_iterator.cpp diff --git a/replication_listener/include/resultset_iterator.h b/replication_listener/resultset_iterator.h similarity index 100% rename from replication_listener/include/resultset_iterator.h rename to replication_listener/resultset_iterator.h diff --git a/replication_listener/src/row_of_fields.cpp b/replication_listener/row_of_fields.cpp similarity index 100% rename from replication_listener/src/row_of_fields.cpp rename to replication_listener/row_of_fields.cpp diff --git a/replication_listener/include/row_of_fields.h b/replication_listener/row_of_fields.h similarity index 100% rename from replication_listener/include/row_of_fields.h rename to replication_listener/row_of_fields.h diff --git a/replication_listener/include/rowset.h b/replication_listener/rowset.h similarity index 100% rename from replication_listener/include/rowset.h rename to replication_listener/rowset.h diff --git a/replication_listener/src/CMakeLists.txt b/replication_listener/src/CMakeLists.txt deleted file mode 100644 index e777175f1..000000000 --- a/replication_listener/src/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ - -# This configuration file builds both the static and shared version of -# the library. -set(replication_sources - access_method_factory.cpp field_iterator.cpp row_of_fields.cpp - binlog_driver.cpp basic_transaction_parser.cpp tcp_driver.cpp - file_driver.cpp binary_log.cpp protocol.cpp value.cpp binlog_event.cpp - resultset_iterator.cpp basic_transaction_parser.cpp - basic_content_handler.cpp utilities.cpp gtid.cpp) - -# Find MySQL client library and header files -find_library(MySQL_LIBRARY NAMES libmysqld.a PATHS -/usr/lib64/mysql /usr/lib/mysql /usr/local/mysql/lib ${MARIADB_SRC_PATH}/lib) -include_directories(${MARIADB_SRC_PATH}) -include_directories(../../utils) - -# Configure for building static library -add_library(replication_static STATIC ${replication_sources}) -target_link_libraries(replication_static crypto ${Boost_LIBRARIES} ${MySQL_LIBRARY}) -set_target_properties(replication_static PROPERTIES - OUTPUT_NAME "replication") - -# Configure for building shared library -add_library(replication_shared SHARED ${replication_sources}) -target_link_libraries(replication_shared crypto ${Boost_LIBRARIES} ${MySQL_LIBRARY}) - -set_target_properties(replication_shared PROPERTIES - VERSION 0.1 SOVERSION 1 - OUTPUT_NAME "replication") - -install(TARGETS replication_shared LIBRARY DESTINATION lib) -install(TARGETS replication_static ARCHIVE DESTINATION lib) diff --git a/replication_listener/src/field_iterator.cpp b/replication_listener/src/field_iterator.cpp deleted file mode 100644 index 623dbc83a..000000000 --- a/replication_listener/src/field_iterator.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ -#include "field_iterator.h" - -//Row_iterator Row_iterator::end() const -//{ return Row_iterator(); } - -namespace mysql -{ - - -bool is_null(unsigned char *bitmap, int index) -{ - unsigned char *byte= bitmap + (index / 8); - unsigned bit= 1 << ((index) & 7); - return ((*byte) & bit) != 0; -} - - -boost::uint32_t extract_metadata(const Table_map_event *map, int col_no) -{ - int offset= 0; - - for (int i=0; i < col_no; ++i) - { - unsigned int type= (unsigned int)map->columns[i]&0xFF; - offset += lookup_metadata_field_size((enum mysql::system::enum_field_types)type); - } - - boost::uint32_t metadata= 0; - unsigned int type= (unsigned int)map->columns[col_no]&0xFF; - switch(lookup_metadata_field_size((enum mysql::system::enum_field_types)type)) - { - case 1: - metadata= map->metadata[offset]; - break; - case 2: - { - unsigned int tmp= ((unsigned int)map->metadata[offset])&0xFF; - metadata= static_cast(tmp); - tmp= (((unsigned int)map->metadata[offset+1])&0xFF) << 8; - metadata+= static_cast(tmp); - } - break; - } - return metadata; -} - -int lookup_metadata_field_size(enum mysql::system::enum_field_types field_type) -{ - switch(field_type) - { - case mysql::system::MYSQL_TYPE_DOUBLE: - case mysql::system::MYSQL_TYPE_FLOAT: - case mysql::system::MYSQL_TYPE_BLOB: - case mysql::system::MYSQL_TYPE_GEOMETRY: - return 1; - case mysql::system::MYSQL_TYPE_BIT: - case mysql::system::MYSQL_TYPE_VARCHAR: - case mysql::system::MYSQL_TYPE_NEWDECIMAL: - case mysql::system::MYSQL_TYPE_STRING: - case mysql::system::MYSQL_TYPE_VAR_STRING: - return 2; - case mysql::system::MYSQL_TYPE_DECIMAL: - case mysql::system::MYSQL_TYPE_SET: - case mysql::system::MYSQL_TYPE_ENUM: - case mysql::system::MYSQL_TYPE_YEAR: - case mysql::system::MYSQL_TYPE_TINY: - case mysql::system::MYSQL_TYPE_SHORT: - case mysql::system::MYSQL_TYPE_INT24: - case mysql::system::MYSQL_TYPE_LONG: - case mysql::system::MYSQL_TYPE_NULL: - case mysql::system::MYSQL_TYPE_NEWDATE: - case mysql::system::MYSQL_TYPE_DATE: - case mysql::system::MYSQL_TYPE_TIME: - case mysql::system::MYSQL_TYPE_TIMESTAMP: - case mysql::system::MYSQL_TYPE_DATETIME: - case mysql::system::MYSQL_TYPE_TINY_BLOB: - case mysql::system::MYSQL_TYPE_MEDIUM_BLOB: - case mysql::system::MYSQL_TYPE_LONG_BLOB: - default: - return 0; - } -} - -} // end namespace mysql diff --git a/replication_listener/src/file_driver.cpp b/replication_listener/src/file_driver.cpp deleted file mode 100644 index 425ac43cf..000000000 --- a/replication_listener/src/file_driver.cpp +++ /dev/null @@ -1,177 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "file_driver.h" - -namespace mysql { namespace system { - -using namespace std; - - // TODO: Gtids not used for binlog file driver - int Binlog_file_driver::connect(const Gtid gtid) - { - struct stat stat_buff; - - char magic[]= {0xfe, 0x62, 0x69, 0x6e, 0}; - char magic_buf[MAGIC_NUMBER_SIZE]; - - // Get the file size. - if (stat(m_binlog_file_name.c_str(), &stat_buff) == -1) - return ERR_FAIL; // Can't stat binlog file. - m_binlog_file_size= stat_buff.st_size; - - m_binlog_file.exceptions(ifstream::failbit | ifstream::badbit | - ifstream::eofbit); - - try - { - // Check if the file can be opened for reading. - m_binlog_file.open(m_binlog_file_name.c_str(), ios::in | ios::binary); - - // Check if a valid MySQL binlog file is provided, BINLOG_MAGIC. - m_binlog_file.read(magic_buf, MAGIC_NUMBER_SIZE); - - if(memcmp(magic, magic_buf, MAGIC_NUMBER_SIZE)) - return ERR_FAIL; // Not a valid binlog file. - - // Reset the get pointer. - //m_binlog_file.seekg(0, ios::beg ); - - m_bytes_read= MAGIC_NUMBER_SIZE; - - } catch (...) - { - return ERR_FAIL; - } - return ERR_OK; - } - - - int Binlog_file_driver::disconnect() - { - m_binlog_file.close(); - return ERR_OK; - } - - - int Binlog_file_driver::set_position(const string &str, unsigned long position) - { - m_binlog_file.exceptions(ifstream::failbit | ifstream::badbit | - ifstream::eofbit); - try - { - m_binlog_file.seekg(position, ios::beg ); - } catch(...) - { - return ERR_FAIL; - } - - m_bytes_read= position; - - return ERR_OK; - } - - - int Binlog_file_driver::get_position(string *str, unsigned long *position) - { - m_binlog_file.exceptions(ifstream::failbit | ifstream::badbit | - ifstream::eofbit); - try - { - if(position) - *position= m_binlog_file.tellg(); - } catch(...) - { - return ERR_FAIL; - } - - return ERR_OK; - } - - - int Binlog_file_driver::wait_for_next_event(mysql::Binary_log_event **event) - { - - assert(m_binlog_file.tellg() >= 4 ); - m_binlog_file.exceptions(ifstream::failbit | ifstream::badbit | - ifstream::eofbit); - - try - { - if(m_bytes_read < m_binlog_file_size && m_binlog_file.good()) - { - //Protocol_chunk prot_marker(m_event_log_header.marker); - Protocol_chunk prot_timestamp(m_event_log_header.timestamp); - Protocol_chunk prot_type_code(m_event_log_header.type_code); - Protocol_chunk prot_server_id(m_event_log_header.server_id); - Protocol_chunk - prot_event_length(m_event_log_header.event_length); - Protocol_chunk - prot_next_position(m_event_log_header.next_position); - Protocol_chunk prot_flags(m_event_log_header.flags); - - m_binlog_file >> prot_timestamp - >> prot_type_code - >> prot_server_id - >> prot_event_length - >> prot_next_position - >> prot_flags; - - /* - m_binlog_file.read(reinterpret_cast(&m_event_log_header.timestamp), - sizeof(boost::uint32_t)); - m_binlog_file.read(reinterpret_cast(&m_event_log_header.type_code), - sizeof(boost::uint8_t)); - m_binlog_file.read(reinterpret_cast(&m_event_log_header.server_id), - sizeof(boost::uint32_t)); - m_binlog_file.read(reinterpret_cast(&m_event_log_header.event_length), - sizeof(boost::uint32_t)); - m_binlog_file.read(reinterpret_cast(&m_event_log_header.next_position), - sizeof(boost::uint32_t)); - m_binlog_file.read(reinterpret_cast(&m_event_log_header.flags), - sizeof(boost::uint16_t)); - */ - - *event= parse_event(* static_cast (&m_binlog_file), - &m_event_log_header); - - /* - Correction. Except for the default case (above), this condition should - always fail. - */ - if (m_bytes_read + m_event_log_header.event_length != - m_binlog_file.tellg()) - m_binlog_file.seekg(m_bytes_read + m_event_log_header.event_length, - ios::beg); - - m_bytes_read= m_binlog_file.tellg(); - - if(*event) - return ERR_OK; - } - } catch(...) - { - return ERR_FAIL; - } - return ERR_EOF; - } - -} -} diff --git a/replication_listener/src/utilities.cpp b/replication_listener/src/utilities.cpp deleted file mode 100644 index 3c6163211..000000000 --- a/replication_listener/src/utilities.cpp +++ /dev/null @@ -1,154 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "utilities.h" - -using namespace mysql; - -namespace mysql { - -int server_var_decoder (std::map *my_var_map, - std::vector variables) -{ - boost::uint8_t length, i; - std::string name; - mysql::system::enum_field_types field_type; - /* To handle special case of 'terminating null byte'. */ - bool is_null_byte= 0; - - - std::vector::iterator it= variables.begin(); - - while (it != variables.end()) - { - switch (*it++) - { - case Q_FLAGS2_CODE: - length= 4; - name= "flag2"; - field_type= mysql::system::MYSQL_TYPE_LONG; - break; - case Q_SQL_MODE_CODE: - length= 8; - name= "sql_mode"; - field_type= mysql::system::MYSQL_TYPE_LONGLONG; - break; - case Q_CATALOG_CODE: - length= *it++; - name= "catalog_name_old"; - field_type= mysql::system::MYSQL_TYPE_VAR_STRING; - is_null_byte= 1; - break; - case Q_AUTO_INCREMENT: - length= 2; - my_var_map->insert(std::make_pair - ("auto_increment_increment", - mysql::Value(mysql::system::MYSQL_TYPE_SHORT, - length, (char*) &(*it)))); - for (i= 0; i < length; i++) - it++; - - name= "auto_increment_offset"; - field_type= mysql::system::MYSQL_TYPE_SHORT; - break; - case Q_CHARSET_CODE: - length= 2; - my_var_map->insert(std::make_pair - ("character_set_client", - mysql::Value(mysql::system::MYSQL_TYPE_SHORT, - length, (char*) &(*it)))); - for (i= 0; i < length; i++) - it++; - - my_var_map->insert(std::make_pair - ("collation_connection", - mysql::Value(mysql::system::MYSQL_TYPE_SHORT, - length, (char*) &(*it)))); - for (i= 0; i < length; i++) - it++; - - name= "collation_server"; - field_type= mysql::system::MYSQL_TYPE_SHORT; - break; - case Q_TIME_ZONE_CODE: - length= *it++; - name= "time_zone"; - field_type= mysql::system::MYSQL_TYPE_VAR_STRING; - break; - case Q_CATALOG_NZ_CODE: - length= *it++; - name= "catalog_name"; - field_type= mysql::system::MYSQL_TYPE_VAR_STRING; - break; - case Q_LC_TIME_NAMES_CODE: - length= 2; - name= "lc_time_names"; - field_type= mysql::system::MYSQL_TYPE_SHORT; - break; - case Q_CHARSET_DATABASE_CODE: - length= 2; - name= "collation_database"; - field_type= mysql::system::MYSQL_TYPE_SHORT; - break; - case Q_TABLE_MAP_FOR_UPDATE_CODE: - length= 8; - name= "table_map_for_update"; - field_type= mysql::system::MYSQL_TYPE_LONGLONG; - break; - case Q_MASTER_DATA_WRITTEN_CODE: - length= 4; - name= "master_data_written"; - field_type= mysql::system::MYSQL_TYPE_LONG; - break; - case Q_INVOKER: - length= *it++; - my_var_map->insert(std::make_pair - ("user", - mysql::Value(mysql::system::MYSQL_TYPE_VAR_STRING, - length, (char*) &(*it)))); - for (i= 0; i < length; i++) - it++; - - length= *it++; - name= "host"; - field_type= mysql::system::MYSQL_TYPE_VARCHAR; - break; - default: - /* Unknown status variables. Error!! */ - return 1; - } /* switch */ - my_var_map->insert(std::make_pair - (name, mysql::Value(field_type, length, - (char*) &(*it)))); - while (length --) - ++it; - - /* Handle null termination byte. */ - if (is_null_byte) - { - ++it; - is_null_byte= 0; - } - } - return 0; -} /* server_var_decoder() */ - -} /* mysql namespace */ - diff --git a/replication_listener/src/tcp_driver.cpp b/replication_listener/tcp_driver.cpp similarity index 99% rename from replication_listener/src/tcp_driver.cpp rename to replication_listener/tcp_driver.cpp index caeabbc2d..e78aa00c6 100644 --- a/replication_listener/src/tcp_driver.cpp +++ b/replication_listener/tcp_driver.cpp @@ -20,7 +20,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include "binlog_api.h" #include #include "tcp_driver.h" -#include #include #include @@ -37,9 +36,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include "protocol.h" #include "binlog_event.h" +#include "listener_exception.h" #include "rowset.h" #include "field_iterator.h" -#include "listener_exception.h" + using boost::asio::ip::tcp; using namespace mysql::system; using namespace mysql; @@ -48,6 +48,8 @@ typedef unsigned char uchar; namespace mysql { namespace system { +#include + boost::mutex mysql_mutex; static int encrypt_password(boost::uint8_t *reply, /* buffer at least EVP_MAX_MD_SIZE */ @@ -935,6 +937,13 @@ int Binlog_tcp_driver::connect(const Gtid gtid) return connect(m_user, m_passwd, m_host, m_port, gtid); } +int Binlog_tcp_driver::connect(size_t binlog_pos) +{ + Gtid gtid = Gtid(); + std::string bf = std::string(""); + return connect(m_user, m_passwd, m_host, m_port, gtid, bf, binlog_pos); +} + /** * Make synchronous reconnect. */ diff --git a/replication_listener/include/tcp_driver.h b/replication_listener/tcp_driver.h similarity index 99% rename from replication_listener/include/tcp_driver.h rename to replication_listener/tcp_driver.h index e2887b318..ba0460461 100644 --- a/replication_listener/include/tcp_driver.h +++ b/replication_listener/tcp_driver.h @@ -21,11 +21,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #ifndef _TCP_DRIVER_H #define _TCP_DRIVER_H #include "binlog_driver.h" -#include "bounded_buffer.h" #include "protocol.h" #include #include +#include "bounded_buffer.h" #include "gtid.h" +#include #define MAX_PACKAGE_SIZE 0xffffff @@ -62,6 +63,7 @@ public: * Connect using previously declared connection parameters. */ int connect(Gtid gtid = Gtid()); + int connect(size_t binlog_pos); /** * Blocking wait for the next binary log event to reach the client diff --git a/replication_listener/tests/CMakeLists.txt b/replication_listener/tests/CMakeLists.txt deleted file mode 100644 index f0f29b931..000000000 --- a/replication_listener/tests/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -# Right now, the tests are built using the static version of the -# replication listener, but we need to decide which one to use. - -set(MySQL_SERVER_TESTS test-basic) -set(MySQL_BINLOG_TESTS replaybinlog replay_sys_vars) -set(MySQL_SIMPLE_TESTS test-transport) - -foreach(test ${MySQL_BINLOG_TESTS} ${MySQL_SERVER_TESTS} ${MySQL_SIMPLE_TESTS}) - message("Adding test ${test}") - add_executable(${test} ${test}.cpp) - target_link_libraries(${test} replication_static gtest) -endforeach() - -if(WITH_SERVER_TESTS) - add_test(ServerTests ${MySQL_SERVER_TESTS}) -endif(WITH_SERVER_TESTS) -add_test(BasicTests ${MySQL_SIMPLE_TESTS}) -add_test(BinlogTests ${MySQL_BINLOG_TESTS}) - diff --git a/replication_listener/tests/r/binlog_file_reader.result b/replication_listener/tests/r/binlog_file_reader.result deleted file mode 100644 index f8d1da43b..000000000 --- a/replication_listener/tests/r/binlog_file_reader.result +++ /dev/null @@ -1,533 +0,0 @@ -# -# Reading binlogs files. -# -Event type: Format_desc length: 110 next pos: 114 -Event type: Query length: 91 next pos: 205 -query= drop database if exists test db= test - -Event type: Query length: 83 next pos: 288 -query= create database test db= test - -Event type: Query length: 105 next pos: 393 -query= CREATE TABLE REPLICATION_LISTENER (c1 int) db= test - -Event type: Query length: 115 next pos: 508 -query= CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a') db= test - -Event type: Query length: 110 next pos: 686 -query= INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc') db= test - -Event type: User defined length: 0 next pos: 755 -Event type: Query length: 99 next pos: 922 -query= UPDATE t1 SET c1='aaaa' WHERE c1='a' db= test - -Event type: User defined length: 0 next pos: 991 -Event type: Query length: 107 next pos: 1098 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255) db= test - -Event type: Query length: 111 next pos: 1277 -query= UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb' db= test - -Event type: User defined length: 0 next pos: 1346 -Event type: Query length: 105 next pos: 1451 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1) db= test - -Event type: Query length: 77 next pos: 1596 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 1665 -Event type: Query length: 104 next pos: 1769 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 107 next pos: 1876 -query= CREATE TABLE t1 (c1 INT, c2 INT DEFAULT '1') db= test - -Event type: Query length: 105 next pos: 2049 -query= INSERT INTO t1 (c1) VALUES (1),(-12),(123) db= test - -Event type: User defined length: 0 next pos: 2118 -Event type: Query length: 101 next pos: 2287 -query= UPDATE t1 SET c1=2147483647 WHERE c1=1 db= test - -Event type: User defined length: 0 next pos: 2356 -Event type: Query length: 111 next pos: 2535 -query= UPDATE t1 SET c1=-2147483648 WHERE c1=2147483647 db= test - -Event type: User defined length: 0 next pos: 2604 -Event type: Query length: 77 next pos: 2749 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 2818 -Event type: Query length: 104 next pos: 2922 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 117 next pos: 3039 -query= CREATE TABLE t1 (c1 SMALLINT, c2 SMALLINT DEFAULT '1') db= test - -Event type: Query length: 105 next pos: 3212 -query= INSERT INTO t1 (c1) VALUES (1),(-12),(123) db= test - -Event type: User defined length: 0 next pos: 3281 -Event type: Query length: 96 next pos: 3445 -query= UPDATE t1 SET c1=32767 WHERE c1=1 db= test - -Event type: User defined length: 0 next pos: 3514 -Event type: Query length: 101 next pos: 3683 -query= UPDATE t1 SET c1=-32768 WHERE c1=32767 db= test - -Event type: User defined length: 0 next pos: 3752 -Event type: Query length: 77 next pos: 3897 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 3966 -Event type: Query length: 104 next pos: 4070 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 115 next pos: 4185 -query= CREATE TABLE t1 (c1 TINYINT, c2 TINYINT DEFAULT '1') db= test - -Event type: Query length: 105 next pos: 4358 -query= INSERT INTO t1 (c1) VALUES (1),(-12),(123) db= test - -Event type: User defined length: 0 next pos: 4427 -Event type: Query length: 94 next pos: 4589 -query= UPDATE t1 SET c1=127 WHERE c1=1 db= test - -Event type: User defined length: 0 next pos: 4658 -Event type: Query length: 97 next pos: 4823 -query= UPDATE t1 SET c1=-128 WHERE c1=127 db= test - -Event type: User defined length: 0 next pos: 4892 -Event type: Query length: 77 next pos: 5037 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 5106 -Event type: Query length: 104 next pos: 5210 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 123 next pos: 5333 -query= CREATE TABLE t1 (c0 INT AUTO_INCREMENT PRIMARY KEY, c1 TEXT) db= test - -Event type: Intvar length: 28 next pos: 5429 -Event type: Query length: 110 next pos: 5539 -query= INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc') db= test - -Event type: User defined length: 0 next pos: 5608 -Event type: Query length: 99 next pos: 5775 -query= UPDATE t1 SET c1='aaaa' WHERE c1='a' db= test - -Event type: User defined length: 0 next pos: 5844 -Event type: Query length: 107 next pos: 5951 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255) db= test - -Event type: Query length: 111 next pos: 6130 -query= UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb' db= test - -Event type: User defined length: 0 next pos: 6199 -Event type: Query length: 105 next pos: 6304 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1) db= test - -Event type: Query length: 77 next pos: 6449 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 6518 -Event type: Query length: 102 next pos: 6620 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 TEXT db= test - -Event type: Intvar length: 28 next pos: 6716 -Event type: Query length: 11106 next pos: 17822 -query= INSERT INTO t1 (c1) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaa') db= test - -Event type: User defined length: 0 next pos: 17891 -Event type: Intvar length: 28 next pos: 17987 -Event type: Query length: 11106 next pos: 29093 -query= INSERT INTO t1 (c1) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaa') db= test - -Event type: User defined length: 0 next pos: 29162 -Event type: Query length: 77 next pos: 29307 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 29376 -Event type: Query length: 104 next pos: 29480 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 93 next pos: 29573 -query= CREATE TABLE t1 (c1 TIMESTAMP) db= test - -Event type: Query length: 116 next pos: 29765 -query= INSERT INTO t1 VALUES ("2010-05-18 14:17:59") db= test - -Event type: User defined length: 0 next pos: 29842 -Event type: Query length: 77 next pos: 29987 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 30056 -Event type: Query length: 104 next pos: 30160 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 92 next pos: 30252 -query= CREATE TABLE t1 (c1 DATETIME) db= test - -Event type: Query length: 108 next pos: 30428 -query= INSERT INTO t1 VALUES ("2005-05-18 14:17:59") db= test - -Event type: User defined length: 0 next pos: 30497 -Event type: Query length: 77 next pos: 30642 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 30711 -Event type: Query length: 104 next pos: 30815 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 89 next pos: 30904 -query= CREATE TABLE t1 (c1 FLOAT) db= test - -Event type: Query length: 116 next pos: 31088 -query= INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321) db= test - -Event type: User defined length: 0 next pos: 31157 -Event type: Query length: 101 next pos: 31326 -query= UPDATE t1 SET c1=0.000001 WHERE c1=1.0 db= test - -Event type: User defined length: 0 next pos: 31395 -Event type: Query length: 77 next pos: 31540 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 31609 -Event type: Query length: 104 next pos: 31713 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 90 next pos: 31803 -query= CREATE TABLE t1 (c1 DOUBLE) db= test - -Event type: Query length: 116 next pos: 31987 -query= INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321) db= test - -Event type: User defined length: 0 next pos: 32056 -Event type: Query length: 106 next pos: 32230 -query= UPDATE t1 SET c1=0.00000000001 WHERE c1=1.0 db= test - -Event type: User defined length: 0 next pos: 32299 -Event type: Query length: 77 next pos: 32444 -query= DELETE FROM t1 db= test - -Event type: User defined length: 0 next pos: 32513 -Event type: Query length: 104 next pos: 32617 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 122 next pos: 32739 -query= DROP TABLE `REPLICATION_LISTENER` /* generated by server */ db= test - -Event type: Format_desc length: 94 next pos: 98 -Event type: Query length: 100 next pos: 198 -query= create table t1(a int) engine= innodb db= test - -Event type: Query length: 101 next pos: 299 -query= create table t2(a int) engine= innodb db= mysql - -Event type: Query length: 92 next pos: 460 -query= insert into t1 (a) values (1) db= test - -Event type: Query length: 93 next pos: 553 -query= insert into t2 (a) values (1) db= mysql - -Event type: User defined length: 0 next pos: 553 -Event type: Query length: 100 next pos: 680 -query= create table t3(a int) engine= innodb db= test - -Event type: Query length: 101 next pos: 781 -query= create table t4(a int) engine= myisam db= mysql - -Event type: Query length: 92 next pos: 942 -query= insert into t3 (a) values (2) db= test - -Event type: Query length: 93 next pos: 1035 -query= insert into t4 (a) values (2) db= mysql - -Event type: Query length: 72 next pos: 1107 -query= ROLLBACK db= mysql - -Event type: Query length: 97 next pos: 1204 -query= create table t5(a int) engine= NDB db= test - -Event type: Query length: 98 next pos: 1302 -query= create table t6(a int) engine= NDB db= mysql - -Event type: Query length: 92 next pos: 1463 -query= insert into t5 (a) values (3) db= test - -Event type: Query length: 93 next pos: 1556 -query= insert into t6 (a) values (3) db= mysql - -Event type: User defined length: 0 next pos: 1626 -Event type: Rotate length: 44 next pos: 1670 -filename= master-bin.000002 pos= 4 - -Event type: Format_desc length: 102 next pos: 106 -Event type: Rotate length: 44 next pos: 0 -filename= master-bin.000003 pos= 4 - -Event type: Format_desc length: 102 next pos: 106 -Event type: Query length: 92 next pos: 266 -query= INSERT INTO db1.t1 VALUES(20) db= test - -Event type: Query length: 84 next pos: 350 -query= SavePoint mixed_cases db= test - -Event type: Query length: 115 next pos: 465 -query= INSERT INTO db1.t2 VALUES("in savepoint mixed_cases") db= db1 - -Event type: Query length: 91 next pos: 556 -query= INSERT INTO db1.t1 VALUES(40) db= db1 - -Event type: Query length: 86 next pos: 642 -query= ROLLBACK TO mixed_cases db= test - -Event type: Query length: 108 next pos: 750 -query= INSERT INTO db1.t2 VALUES("after rollback to") db= db1 - -Event type: Query length: 91 next pos: 841 -query= INSERT INTO db1.t1 VALUES(50) db= db1 - -Event type: User defined length: 0 next pos: 841 -# End of test diff --git a/replication_listener/tests/r/replication_listener.result b/replication_listener/tests/r/replication_listener.result deleted file mode 100644 index 216f72b9e..000000000 --- a/replication_listener/tests/r/replication_listener.result +++ /dev/null @@ -1,980 +0,0 @@ -use test; -CREATE TABLE REPLICATION_LISTENER (c1 int); -"*** Test CHAR" -CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a'); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -Warnings: -Warning 1265 Data truncated for column 'c1' at row 1 -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255); -UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1); -Warnings: -Warning 1265 Data truncated for column 'c1' at row 1 -Warning 1265 Data truncated for column 'c1' at row 2 -Warning 1265 Data truncated for column 'c1' at row 3 -DELETE FROM t1; -DROP TABLE t1; -"*** Test INT" -CREATE TABLE t1 (c1 INT, c2 INT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=2147483647 WHERE c1=1; -UPDATE t1 SET c1=-2147483648 WHERE c1=2147483647; -DELETE FROM t1; -DROP TABLE t1; -"*** Test SMALLINT" -CREATE TABLE t1 (c1 SMALLINT, c2 SMALLINT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=32767 WHERE c1=1; -UPDATE t1 SET c1=-32768 WHERE c1=32767; -DELETE FROM t1; -DROP TABLE t1; -"*** Test TINYINT" -CREATE TABLE t1 (c1 TINYINT, c2 TINYINT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=127 WHERE c1=1; -UPDATE t1 SET c1=-128 WHERE c1=127; -DELETE FROM t1; -DROP TABLE t1; -"**** Test TEXT" -CREATE TABLE t1 (c0 INT AUTO_INCREMENT PRIMARY KEY, c1 TEXT); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255); -UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1); -Warnings: -Warning 1265 Data truncated for column 'c1' at row 1 -Warning 1265 Data truncated for column 'c1' at row 2 -Warning 1265 Data truncated for column 'c1' at row 3 -DELETE FROM t1; -ALTER TABLE t1 CHANGE COLUMN c1 c1 TEXT; -INSERT INTO t1 (c1) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaa'); -DELETE FROM t1; -DROP TABLE t1; -"*** Testing TIMESTAMP" -CREATE TABLE t1 (c1 TIMESTAMP); -INSERT INTO t1 VALUES ("2010-05-18 14:17:59"); -DELETE FROM t1; -DROP TABLE t1; -"*** Testing DATETIME" -CREATE TABLE t1 (c1 DATETIME); -INSERT INTO t1 VALUES ("2005-05-18 14:17:59"); -DELETE FROM t1; -DROP TABLE t1; -"*** Testing FLOAT" -CREATE TABLE t1 (c1 FLOAT); -INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321); -UPDATE t1 SET c1=0.000001 WHERE c1=1.0; -DELETE FROM t1; -DROP TABLE t1; -"*** Testing DOUBLE" -CREATE TABLE t1 (c1 DOUBLE); -INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321); -UPDATE t1 SET c1=0.00000000001 WHERE c1=1.0; -DELETE FROM t1; -DROP TABLE t1; -DROP TABLE REPLICATION_LISTENER; -Event type: Incident length: 40 next pos: 4 -type= 175 message= Operation canceled - -Event type: Rotate length: 43 next pos: 0 -filename= searchbin.000001 pos= 4 - -Event type: Format_desc length: 103 next pos: 107 -Event type: Query length: 105 next pos: 212 -query= CREATE TABLE REPLICATION_LISTENER (c1 int) db= test - -Event type: Query length: 115 next pos: 327 -query= CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a') db= test - -Event type: User defined length: 0 next pos: 488 -INSERT INTO test.t1 VALUES (a, a) -INSERT INTO test.t1 VALUES (bb, a) -INSERT INTO test.t1 VALUES (ccc, a) -Event type: User defined length: 0 next pos: 713 -UPDATE test.t1 SET 0= aaa, 1= a WHERE 0= a AND 1= a LIMIT 1 -Event type: Query length: 107 next pos: 889 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255) db= test - -Event type: User defined length: 0 next pos: 1058 -UPDATE test.t1 SET 0= bbbbbbbbbbbbbbb, 1= a WHERE 0= bb AND 1= a LIMIT 1 -Event type: Query length: 105 next pos: 1232 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1) db= test - -Event type: User defined length: 0 next pos: 1390 -DELETE FROM test.t1 WHERE 0= a AND 1= a LIMIT 1 -DELETE FROM test.t1 WHERE 0= b AND 1= a LIMIT 1 -DELETE FROM test.t1 WHERE 0= c AND 1= a LIMIT 1 -Event type: Query length: 104 next pos: 1563 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 107 next pos: 1670 -query= CREATE TABLE t1 (c1 INT, c2 INT DEFAULT '1') db= test - -Event type: User defined length: 0 next pos: 1836 -INSERT INTO test.t1 VALUES (1, 1) -INSERT INTO test.t1 VALUES (-12, 1) -INSERT INTO test.t1 VALUES (123, 1) -Event type: User defined length: 0 next pos: 2063 -UPDATE test.t1 SET 0= 2147483647, 1= 1 WHERE 0= 1 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 2290 -UPDATE test.t1 SET 0= -2147483648, 1= 1 WHERE 0= 2147483647 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 2525 -DELETE FROM test.t1 WHERE 0= -2147483648 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= -12 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 123 AND 1= 1 LIMIT 1 -Event type: Query length: 104 next pos: 2698 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 117 next pos: 2815 -query= CREATE TABLE t1 (c1 SMALLINT, c2 SMALLINT DEFAULT '1') db= test - -Event type: User defined length: 0 next pos: 2969 -INSERT INTO test.t1 VALUES (1, 1) -INSERT INTO test.t1 VALUES (-12, 1) -INSERT INTO test.t1 VALUES (123, 1) -Event type: User defined length: 0 next pos: 3188 -UPDATE test.t1 SET 0= 32767, 1= 1 WHERE 0= 1 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 3407 -UPDATE test.t1 SET 0= -32768, 1= 1 WHERE 0= 32767 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 3630 -DELETE FROM test.t1 WHERE 0= -32768 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= -12 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 123 AND 1= 1 LIMIT 1 -Event type: Query length: 104 next pos: 3803 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 115 next pos: 3918 -query= CREATE TABLE t1 (c1 TINYINT, c2 TINYINT DEFAULT '1') db= test - -Event type: User defined length: 0 next pos: 4066 -INSERT INTO test.t1 VALUES (1, 1) -INSERT INTO test.t1 VALUES (-12, 1) -INSERT INTO test.t1 VALUES (123, 1) -Event type: User defined length: 0 next pos: 4281 -UPDATE test.t1 SET 0= 127, 1= 1 WHERE 0= 1 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 4496 -UPDATE test.t1 SET 0= -128, 1= 1 WHERE 0= 127 AND 1= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 4713 -DELETE FROM test.t1 WHERE 0= -128 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= -12 AND 1= 1 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 123 AND 1= 1 LIMIT 1 -Event type: Query length: 104 next pos: 4886 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 123 next pos: 5009 -query= CREATE TABLE t1 (c0 INT AUTO_INCREMENT PRIMARY KEY, c1 TEXT) db= test - -Event type: User defined length: 0 next pos: 5176 -INSERT INTO test.t1 VALUES (1, 'a') -INSERT INTO test.t1 VALUES (2, 'bb') -INSERT INTO test.t1 VALUES (3, 'ccc') -Event type: User defined length: 0 next pos: 5405 -UPDATE test.t1 SET 0= 1, 1= 'aaaa' WHERE 0= 1 AND 1= 'a' LIMIT 1 -Event type: Query length: 107 next pos: 5581 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255) db= test - -Event type: User defined length: 0 next pos: 5752 -UPDATE test.t1 SET 0= 2, 1= bbbbbbbbbbbbbbb WHERE 0= 2 AND 1= bb LIMIT 1 -Event type: Query length: 105 next pos: 5926 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1) db= test - -Event type: User defined length: 0 next pos: 6088 -DELETE FROM test.t1 WHERE 0= 1 AND 1= a LIMIT 1 -DELETE FROM test.t1 WHERE 0= 2 AND 1= b LIMIT 1 -DELETE FROM test.t1 WHERE 0= 3 AND 1= c LIMIT 1 -Event type: Query length: 102 next pos: 6259 -query= ALTER TABLE t1 CHANGE COLUMN c1 c1 TEXT db= test - -Event type: User defined length: 0 next pos: 17418 -INSERT INTO test.t1 VALUES (4, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaa' LIMIT 1 -Event type: Query length: 104 next pos: 51095 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 93 next pos: 51188 -query= CREATE TABLE t1 (c1 TIMESTAMP) db= test - -Event type: User defined length: 0 next pos: 51339 -INSERT INTO test.t1 VALUES (1274181479) -Event type: User defined length: 0 next pos: 51559 -DELETE FROM test.t1 WHERE 0= 1274181479 LIMIT 1 -Event type: Query length: 104 next pos: 51732 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 92 next pos: 51824 -query= CREATE TABLE t1 (c1 DATETIME) db= test - -Event type: User defined length: 0 next pos: 51971 -INSERT INTO test.t1 VALUES (2005-05-18 14:17:59) -Event type: User defined length: 0 next pos: 52187 -DELETE FROM test.t1 WHERE 0= 2005-05-18 14:17:59 LIMIT 1 -Event type: Query length: 104 next pos: 52360 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 89 next pos: 52449 -query= CREATE TABLE t1 (c1 FLOAT) db= test - -Event type: User defined length: 0 next pos: 52608 -INSERT INTO test.t1 VALUES (1) -INSERT INTO test.t1 VALUES (1.01) -INSERT INTO test.t1 VALUES (-12.05) -INSERT INTO test.t1 VALUES (115.321) -Event type: User defined length: 0 next pos: 52827 -UPDATE test.t1 SET 0= 1e-06 WHERE 0= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 53055 -DELETE FROM test.t1 WHERE 0= 1e-06 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 1.01 LIMIT 1 -DELETE FROM test.t1 WHERE 0= -12.05 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 115.321 LIMIT 1 -Event type: Query length: 104 next pos: 53228 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 90 next pos: 53318 -query= CREATE TABLE t1 (c1 DOUBLE) db= test - -Event type: User defined length: 0 next pos: 53493 -INSERT INTO test.t1 VALUES (1) -INSERT INTO test.t1 VALUES (1.01) -INSERT INTO test.t1 VALUES (-12.05) -INSERT INTO test.t1 VALUES (115.321) -Event type: User defined length: 0 next pos: 53720 -UPDATE test.t1 SET 0= 1e-11 WHERE 0= 1 LIMIT 1 -Event type: User defined length: 0 next pos: 53964 -DELETE FROM test.t1 WHERE 0= 1e-11 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 1.01 LIMIT 1 -DELETE FROM test.t1 WHERE 0= -12.05 LIMIT 1 -DELETE FROM test.t1 WHERE 0= 115.321 LIMIT 1 -Event type: Query length: 104 next pos: 54137 -query= DROP TABLE `t1` /* generated by server */ db= test - -Event type: Query length: 122 next pos: 54259 -query= DROP TABLE `REPLICATION_LISTENER` /* generated by server */ db= test - -"## End of binary log." diff --git a/replication_listener/tests/r/sys_vars.result b/replication_listener/tests/r/sys_vars.result deleted file mode 100644 index 64316a0f9..000000000 --- a/replication_listener/tests/r/sys_vars.result +++ /dev/null @@ -1,329 +0,0 @@ -DROP DATABASE IF EXISTS `sys_var`; -Warnings: -Note 1008 Can't drop database 'sys_var'; database doesn't exist -CREATE DATABASE `sys_var`; -USE `sys_var`; -CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a'); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -Warnings: -Warning 1265 Data truncated for column 'c1' at row 1 -DELETE FROM t1; -DROP TABLE t1; -SET @@auto_increment_increment=19; -SET @@auto_increment_offset=4; -SET @@character_set_client='latin2'; -SET @@collation_connection='latin2_bin'; -SET @@collation_server='geostd8_general_ci'; -SET @@time_zone='Japan'; -SET @@lc_time_names='sv_SE'; -SET @@collation_database='geostd8_bin'; -CREATE TABLE t1 (c1 DATE); -INSERT INTO t1 VALUES ('2006-01-01'); -SELECT c1 FROM t1; -c1 -2006-01-01 -DROP TABLE t1; -CREATE TABLE t1 (c1 INT AUTO_INCREMENT PRIMARY KEY, c2 TEXT); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -Warnings: -Warning 1366 Incorrect integer value: 'a' for column 'c1' at row 1 -Warning 1366 Incorrect integer value: 'bb' for column 'c1' at row 2 -Warning 1366 Incorrect integer value: 'ccc' for column 'c1' at row 3 -SELECT * FROM t1; -c1 c2 -4 NULL -23 NULL -42 NULL -DROP TABLE t1; -DROP DATABASE `sys_var`; -Connected to server!! -Pos = 4 Event_type = 26 -Pos = 0 Event_type = 4 -Pos = 114 Event_type = 15 -Pos = 213 Event_type = 2 -Query = DROP DATABASE IF EXISTS `sys_var` DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 0 -sql_mode = -453830021431164924 ----------- - -Pos = 304 Event_type = 2 -Query = CREATE DATABASE `sys_var` DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 0 -sql_mode = -453830021431164924 ----------- - -Pos = 422 Event_type = 2 -Query = CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a') DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566648 -sql_mode = -453830021430627274 ----------- - -Pos = 493 Event_type = 2 -Query = BEGIN DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566656 -sql_mode = -453830021430758090 ----------- - -Pos = 606 Event_type = 2 -Query = INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc') DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566654 -sql_mode = -453830021430889162 ----------- - -Pos = 678 Event_type = 2 -Query = COMMIT DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566650 -sql_mode = -453830021431151306 ----------- - -Pos = 749 Event_type = 2 -Query = BEGIN DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 851 Event_type = 2 -Query = UPDATE t1 SET c1='aaaa' WHERE c1='a' DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 923 Event_type = 2 -Query = COMMIT DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 994 Event_type = 2 -Query = BEGIN DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 1074 Event_type = 2 -Query = DELETE FROM t1 DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 1146 Event_type = 2 -Query = COMMIT DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 1253 Event_type = 2 -Query = DROP TABLE `t1` /* generated by server */ DB = sys_var -catalog_name = std -character_set_client = 8 -collation_connection = 8 -collation_server = 8 -flag2 = 566652 -sql_mode = -453830021431020234 ----------- - -Pos = 1355 Event_type = 2 -Query = CREATE TABLE t1 (c1 DATE) DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1437 Event_type = 2 -Query = BEGIN DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1550 Event_type = 2 -Query = INSERT INTO t1 VALUES ('2006-01-01') DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1633 Event_type = 2 -Query = COMMIT DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1751 Event_type = 2 -Query = DROP TABLE `t1` /* generated by server */ DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1888 Event_type = 2 -Query = CREATE TABLE t1 (c1 INT AUTO_INCREMENT PRIMARY KEY, c2 TEXT) DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1970 Event_type = 2 -Query = BEGIN DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 1998 Event_type = 5 -Pos = 2122 Event_type = 2 -Query = INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc') DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 2205 Event_type = 2 -Query = COMMIT DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 2323 Event_type = 2 -Query = DROP TABLE `t1` /* generated by server */ DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -Pos = 2423 Event_type = 2 -Query = DROP DATABASE `sys_var` DB = sys_var -auto_increment_increment = 19 -auto_increment_offset = 4 -catalog_name = std -character_set_client = 9 -collation_connection = 77 -collation_database = 93 -collation_server = 92 -flag2 = 0 -lc_time_names = 3 -sql_mode = -453830021430968318 ----------- - -"#End of binary log" diff --git a/replication_listener/tests/replay_sys_vars.cpp b/replication_listener/tests/replay_sys_vars.cpp deleted file mode 100644 index fc0c767d7..000000000 --- a/replication_listener/tests/replay_sys_vars.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include -#include -#include "binlog_api.h" -#include "utilities.h" - -int main (int argc, char* argv[]) -{ - mysql::Binary_log - binlog(mysql::system::create_transport("mysql://root@127.0.0.1:13000")); - - if (binlog.connect()) - { - std::cerr << "Can't connect!" << std::endl; - exit(1); - } - std::cout << "Connected to server!!" << std::endl; - - if (binlog.set_position(4) != ERR_OK) - { - std::cerr << "Can't reposition the binary log reader." - << std::endl; - exit(1); - } - - Binary_log_event *event; - - bool quit=false; - while (!quit) - { - if (binlog.wait_for_next_event (&event)) - { - quit= true; - continue; - } - - std::cout << "Pos = " - << event->header()->next_position - <<" Event_type = " - << event->get_event_type() - << std::endl; - - switch (event->header()->type_code) - { - case mysql::QUERY_EVENT: - { - const mysql::Query_event *qev= static_cast(event); - std::cout << "Query = " - << qev->query - << " DB = " - << qev->db_name - << std::endl; - std::map my_var_map; - - if (server_var_decoder(&my_var_map, qev->variables)) - return (EXIT_FAILURE); - - mysql::Converter converter; - - typedef std::map::value_type my_pair; - BOOST_FOREACH (my_pair &ref, my_var_map) - { - std::string value; - converter.to(value, ref.second); - std::cout << ref.first - << " = " - << value - << std::endl; - } - std::cout << "----------" << std::endl << std::endl; - - if (qev->query.find("DROP DATABASE `sys_var`") != std::string::npos - || qev->query.find("DROP DATABASE sys_var") != std::string::npos) - quit= true; - } - break; - default: - break; - } - delete event; - } - return 0; -} - diff --git a/replication_listener/tests/replaybinlog.cpp b/replication_listener/tests/replaybinlog.cpp deleted file mode 100644 index 6095b75d6..000000000 --- a/replication_listener/tests/replaybinlog.cpp +++ /dev/null @@ -1,330 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ -#include -#include -#include "binlog_api.h" - -bool is_text_field(Value &val) -{ - if (val.type() == mysql::system::MYSQL_TYPE_VARCHAR || - val.type() == mysql::system::MYSQL_TYPE_BLOB || - val.type() == mysql::system::MYSQL_TYPE_MEDIUM_BLOB || - val.type() == mysql::system::MYSQL_TYPE_LONG_BLOB) - return true; - return false; -} - -void table_insert(const std::string& table_name, mysql::Row_of_fields &fields) -{ - std::cout << "INSERT INTO " - << table_name - << " VALUES ("; - mysql::Row_of_fields::iterator field_it= fields.begin(); - mysql::Converter converter; - do { - /* - Each row contains a vector of Value objects. The converter - allows us to transform the value into another - representation. - */ - std::string str; - converter.to(str, *field_it); - if (is_text_field(*field_it)) - std::cout << '\''; - std::cout << str; - if (is_text_field(*field_it)) - std::cout << '\''; - ++field_it; - if (field_it != fields.end()) - std::cout << ", "; - } while(field_it != fields.end()); - std::cout << ")" << std::endl; -} - - -void table_update(const std::string& table_name, - mysql::Row_of_fields &old_fields, mysql::Row_of_fields &new_fields) -{ - std::cout << "UPDATE " - << table_name - << " SET "; - - int field_id= 0; - mysql::Row_of_fields::iterator field_it= new_fields.begin(); - mysql::Converter converter; - do { - std::string str; - converter.to(str, *field_it); - std::cout << field_id << "= "; - if (is_text_field(*field_it)) - std::cout << '\''; - std::cout << str; - if (is_text_field(*field_it)) - std::cout << '\''; - ++field_it; - ++field_id; - if (field_it != new_fields.end()) - std::cout << ", "; - } while(field_it != new_fields.end()); - std::cout << " WHERE "; - field_it= old_fields.begin(); - field_id= 0; - do { - std::string str; - converter.to(str, *field_it); - std::cout << field_id << "= "; - if (is_text_field(*field_it)) - std::cout << '\''; - std::cout << str; - if (is_text_field(*field_it)) - std::cout << '\''; - ++field_it; - ++field_id; - if (field_it != old_fields.end()) - std::cout << " AND "; - } while(field_it != old_fields.end()); - std::cout << " LIMIT 1" << std::endl; - -} - - -void table_delete(const std::string& table_name, mysql::Row_of_fields &fields) -{ - std::cout << "DELETE FROM " - << table_name - << " WHERE "; - mysql::Row_of_fields::iterator field_it= fields.begin(); - int field_id= 0; - mysql::Converter converter; - do { - - std::string str; - converter.to(str, *field_it); - std::cout << field_id << "= "; - if (is_text_field(*field_it)) - std::cout << '\''; - std::cout << str; - if (is_text_field(*field_it)) - std::cout << '\''; - ++field_it; - ++field_id; - if (field_it != fields.end()) - std::cout << " AND "; - } while(field_it != fields.end()); - std::cout << " LIMIT 1" << std::endl; -} - -class Incident_handler : public mysql::Content_handler -{ -public: - Incident_handler() : mysql::Content_handler() {} - - mysql::Binary_log_event *process_event(mysql::Incident_event *incident) - { - std::cout << "Event type: " - << mysql::system::get_event_type_str(incident->get_event_type()) - << " length: " << incident->header()->event_length - << " next pos: " << incident->header()->next_position - << std::endl; - std::cout << "type= " - << (unsigned)incident->type - << " message= " - << incident->message - << std::endl - << std::endl; - /* Consume the event */ - delete incident; - return 0; - } -}; - -class Replay_binlog : public mysql::Content_handler -{ -public: - Replay_binlog() : mysql::Content_handler() {} - mysql::Binary_log_event *process_event(mysql::Binary_log_event *event) - { - if (event->get_event_type() != mysql::USER_DEFINED) - return event; - std::cout << "Event type: " - << mysql::system::get_event_type_str(event->get_event_type()) - << " length: " << event->header()->event_length - << " next pos: " << event->header()->next_position - << std::endl; - mysql::Transaction_log_event *trans= static_cast(event); - int row_count=0; - /* - The transaction event we created has aggregated all row events in an - ordered list. - */ - BOOST_FOREACH(mysql::Binary_log_event * event, trans->m_events) - { - switch (event->get_event_type()) - { - case mysql::WRITE_ROWS_EVENT: - case mysql::DELETE_ROWS_EVENT: - case mysql::UPDATE_ROWS_EVENT: - mysql::Row_event *rev= static_cast(event); - boost::uint64_t table_id= rev->table_id; - // BUG: will create a new event header if the table id doesn't exist. - Binary_log_event * tmevent= trans->table_map()[table_id]; - mysql::Table_map_event *tm; - if (tmevent != NULL) - tm= static_cast(tmevent); - else - { - std::cout << "Table id " - << table_id - << " was not registered by any preceding table map event." - << std::endl; - continue; - } - /* - Each row event contains multiple rows and fields. The Row_iterator - allows us to iterate one row at a time. - */ - mysql::Row_event_set rows(rev, tm); - /* - Create a fuly qualified table name - */ - std::ostringstream os; - os << tm->db_name << '.' << tm->table_name; - mysql::Row_event_set::iterator it= rows.begin(); - do { - mysql::Row_of_fields fields= *it; - - if (event->get_event_type() == mysql::WRITE_ROWS_EVENT) - table_insert(os.str(),fields); - if (event->get_event_type() == mysql::UPDATE_ROWS_EVENT) - { - ++it; - mysql::Row_of_fields fields2= *it; - table_update(os.str(),fields,fields2); - } - if (event->get_event_type() == mysql::DELETE_ROWS_EVENT) - table_delete(os.str(),fields); - } while (++it != rows.end()); - } // end switch - } // end BOOST_FOREACH - /* Consume the event */ - delete trans; - return 0; - } -}; -/* - * - */ -int main(int argc, char** argv) -{ - if (argc != 2) - { - fprintf(stderr,"Usage:\n\treplaybinlog URL\n\nExample:\n\treplaybinlog mysql://root:mypasswd@127.0.0.1:3306\n\n"); - return (EXIT_FAILURE); - } - - mysql::Binary_log binlog(mysql::system::create_transport(argv[1])); - - - /* - Attach a custom event parser which produces user defined events - */ - mysql::Basic_transaction_parser transaction_parser; - Incident_handler incident_hndlr; - Replay_binlog replay_hndlr; - - binlog.content_handler_pipeline()->push_back(&transaction_parser); - binlog.content_handler_pipeline()->push_back(&incident_hndlr); - binlog.content_handler_pipeline()->push_back(&replay_hndlr); - - if (binlog.connect()) - { - fprintf(stderr,"Can't connect to the master.\n"); - return (EXIT_FAILURE); - } - - if (binlog.set_position(4) != ERR_OK) - { - fprintf(stderr,"Can't reposition the binary log reader.\n"); - return (EXIT_FAILURE); - } - - Binary_log_event *event; - - bool quit= false; - while(!quit) - { - /* - Pull events from the master. This is the heart beat of the event listener. - */ - if (binlog.wait_for_next_event(&event)) - { - quit= true; - continue; - } - - /* - Print the event - */ - std::cout << "Event type: " - << mysql::system::get_event_type_str(event->get_event_type()) - << " length: " << event->header()->event_length - << " next pos: " << event->header()->next_position - << std::endl; - - /* - Perform a special action based on event type - */ - - switch(event->header()->type_code) - { - case mysql::QUERY_EVENT: - { - const mysql::Query_event *qev= static_cast(event); - std::cout << "query= " - << qev->query - << " db= " - << qev->db_name - << std::endl - << std::endl; - if (qev->query.find("DROP TABLE REPLICATION_LISTENER") != std::string::npos || - qev->query.find("DROP TABLE `REPLICATION_LISTENER`") != std::string::npos) - { - quit= true; - } - } - break; - - case mysql::ROTATE_EVENT: - { - mysql::Rotate_event *rot= static_cast(event); - std::cout << "filename= " - << rot->binlog_file.c_str() - << " pos= " - << rot->binlog_pos - << std::endl - << std::endl; - } - break; - - } // end switch - delete event; - } // end loop - return (EXIT_SUCCESS); -} diff --git a/replication_listener/tests/std-data/binlog_savepoint.000001 b/replication_listener/tests/std-data/binlog_savepoint.000001 deleted file mode 100644 index 5109042a1..000000000 Binary files a/replication_listener/tests/std-data/binlog_savepoint.000001 and /dev/null differ diff --git a/replication_listener/tests/std-data/binlog_transaction.000001 b/replication_listener/tests/std-data/binlog_transaction.000001 deleted file mode 100644 index c1d0745d5..000000000 Binary files a/replication_listener/tests/std-data/binlog_transaction.000001 and /dev/null differ diff --git a/replication_listener/tests/std-data/searchbin.000001 b/replication_listener/tests/std-data/searchbin.000001 deleted file mode 100644 index 2bf6221dd..000000000 Binary files a/replication_listener/tests/std-data/searchbin.000001 and /dev/null differ diff --git a/replication_listener/tests/t/binlog_file_reader.test b/replication_listener/tests/t/binlog_file_reader.test deleted file mode 100644 index 4fd1683a0..000000000 --- a/replication_listener/tests/t/binlog_file_reader.test +++ /dev/null @@ -1,12 +0,0 @@ --- source include/not_embedded.inc -let $REPLICATION_LISTENER=""; -let $SAMPLE_BINLOG_FILES_DIR=""; - ---echo # ---echo # Reading binlogs files. ---echo # ---exec $REPLICATION_LISTENER file://$SAMPLE_BINLOG_FILES_DIR/searchbin.000001 ---exec $REPLICATION_LISTENER file://$SAMPLE_BINLOG_FILES_DIR/binlog_transaction.000001 ---exec $REPLICATION_LISTENER file://$SAMPLE_BINLOG_FILES_DIR/binlog_savepoint.000001 - ---echo # End of test diff --git a/replication_listener/tests/t/replication_listener-master.opt b/replication_listener/tests/t/replication_listener-master.opt deleted file mode 100644 index 2f00c24eb..000000000 --- a/replication_listener/tests/t/replication_listener-master.opt +++ /dev/null @@ -1 +0,0 @@ ---log_bin=searchbin --binlog_format=row diff --git a/replication_listener/tests/t/replication_listener.test b/replication_listener/tests/t/replication_listener.test deleted file mode 100644 index 563f34e56..000000000 --- a/replication_listener/tests/t/replication_listener.test +++ /dev/null @@ -1,341 +0,0 @@ -# This test should work in embedded server after we fix mysqltest --- source include/not_embedded.inc -let $REPLICATION_LISTENER="/Users/thek/Development/replaybinlog/replaybinlog.sh"; - -# Create table which we use to signal the replication listener. -use test; -CREATE TABLE REPLICATION_LISTENER (c1 int); - ---echo "*** Test CHAR" -CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a'); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255); -UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1); -DELETE FROM t1; -DROP TABLE t1; - - ---echo "*** Test INT" -CREATE TABLE t1 (c1 INT, c2 INT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=2147483647 WHERE c1=1; -UPDATE t1 SET c1=-2147483648 WHERE c1=2147483647; -DELETE FROM t1; -DROP TABLE t1; - ---echo "*** Test SMALLINT" -CREATE TABLE t1 (c1 SMALLINT, c2 SMALLINT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=32767 WHERE c1=1; -UPDATE t1 SET c1=-32768 WHERE c1=32767; -DELETE FROM t1; -DROP TABLE t1; - ---echo "*** Test TINYINT" -CREATE TABLE t1 (c1 TINYINT, c2 TINYINT DEFAULT '1'); -INSERT INTO t1 (c1) VALUES (1),(-12),(123); -UPDATE t1 SET c1=127 WHERE c1=1; -UPDATE t1 SET c1=-128 WHERE c1=127; -DELETE FROM t1; -DROP TABLE t1; - -#--echo "*** Test BIGINT" -#CREATE TABLE t1 (c1 BIGINT, c2 BIGINT DEFAULT '1'); -#INSERT INTO t1 (c1) VALUES (1),(-12),(123); -#UPDATE t1 SET c1=9223372036854775807 WHERE c1=1; -#UPDATE t1 SET c1=-9223372036854775808 WHERE c1=9223372036854775807; -#DELETE FROM t1; -#DROP TABLE t1; - ---echo "**** Test TEXT" -CREATE TABLE t1 (c0 INT AUTO_INCREMENT PRIMARY KEY, c1 TEXT); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(255); -UPDATE t1 SET c1='bbbbbbbbbbbbbbb' WHERE c1='bb'; -ALTER TABLE t1 CHANGE COLUMN c1 c1 CHAR(1); -DELETE FROM t1; -ALTER TABLE t1 CHANGE COLUMN c1 c1 TEXT; -INSERT INTO t1 (c1) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa -aaaaaaaaaaaa'); - -DELETE FROM t1; -DROP TABLE t1; - - ---echo "*** Testing TIMESTAMP" -CREATE TABLE t1 (c1 TIMESTAMP); -INSERT INTO t1 VALUES ("2010-05-18 14:17:59"); -DELETE FROM t1; -DROP TABLE t1; - - ---echo "*** Testing DATETIME" -CREATE TABLE t1 (c1 DATETIME); -INSERT INTO t1 VALUES ("2005-05-18 14:17:59"); -DELETE FROM t1; -DROP TABLE t1; - ---echo "*** Testing FLOAT" -CREATE TABLE t1 (c1 FLOAT); -INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321); -UPDATE t1 SET c1=0.000001 WHERE c1=1.0; -DELETE FROM t1; -DROP TABLE t1; - ---echo "*** Testing DOUBLE" -CREATE TABLE t1 (c1 DOUBLE); -INSERT INTO t1 VALUES (1.0),(1.01),(-12.05),(115.321); -UPDATE t1 SET c1=0.00000000001 WHERE c1=1.0; -DELETE FROM t1; -DROP TABLE t1; - - -DROP TABLE REPLICATION_LISTENER; - ---exec $REPLICATION_LISTENER mysql://root@127.0.0.1:13000 - ---echo "## End of binary log." - diff --git a/replication_listener/tests/t/sys_vars.test b/replication_listener/tests/t/sys_vars.test deleted file mode 100644 index a8874669a..000000000 --- a/replication_listener/tests/t/sys_vars.test +++ /dev/null @@ -1,39 +0,0 @@ -# This test should work in embedded server after we fix mysqltest --- source include/not_embedded.inc - -let $REPLICATION_LISTENER="/home/nirbhay/Project/mysql/repo/worklogs/3283/sys-vars/tests/replay_sys_vars"; - -DROP DATABASE IF EXISTS `sys_var`; -CREATE DATABASE `sys_var`; -USE `sys_var`; - -CREATE TABLE t1 (c1 CHAR(3), c2 CHAR(1) DEFAULT 'a'); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -UPDATE t1 SET c1='aaaa' WHERE c1='a'; -DELETE FROM t1; -DROP TABLE t1; - -SET @@auto_increment_increment=19; -SET @@auto_increment_offset=4; -SET @@character_set_client='latin2'; -SET @@collation_connection='latin2_bin'; -SET @@collation_server='geostd8_general_ci'; -SET @@time_zone='Japan'; -SET @@lc_time_names='sv_SE'; -SET @@collation_database='geostd8_bin'; - -CREATE TABLE t1 (c1 DATE); -INSERT INTO t1 VALUES ('2006-01-01'); -SELECT c1 FROM t1; -DROP TABLE t1; - -CREATE TABLE t1 (c1 INT AUTO_INCREMENT PRIMARY KEY, c2 TEXT); -INSERT INTO t1 (c1) VALUES ('a'),('bb'),('ccc'); -SELECT * FROM t1; -DROP TABLE t1; - -DROP DATABASE `sys_var`; - ---exec $REPLICATION_LISTENER - ---echo "#End of binary log" diff --git a/replication_listener/tests/test-basic.cpp b/replication_listener/tests/test-basic.cpp deleted file mode 100644 index 5356e9188..000000000 --- a/replication_listener/tests/test-basic.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "binlog_api.h" -#include -#include -#include -class TestBinaryLog : public ::testing::Test { - protected: - TestBinaryLog() { - // You can do set-up work for each test here. - } - - virtual ~TestBinaryLog() { - // You can do clean-up work that doesn't throw exceptions here. - } - - // If the constructor and destructor are not enough for setting up - // and cleaning up each test, you can define the following methods: - - virtual void SetUp() { - // Code here will be called immediately after the constructor (right - // before each test). - } - - virtual void TearDown() { - // Code here will be called immediately after each test (right - // before the destructor). - } - -}; - - -TEST_F(TestBinaryLog, ConnectTo_Bogus) -{ - using mysql::system::create_transport; - mysql::Binary_log *binlog= new mysql::Binary_log(create_transport("bogus-url")); - EXPECT_GT(binlog->connect(), 0); - delete(binlog); -} - -TEST_F(TestBinaryLog, ConnectTo_TcpIp) -{ - using mysql::system::create_transport; - mysql::Binary_log *binlog= new mysql::Binary_log(create_transport("mysql://root@127.0.0.1:13000")); - EXPECT_EQ(binlog->connect(),0); - delete binlog; -} - -TEST_F(TestBinaryLog, Connected_TcpIp) -{ - using mysql::system::create_transport; - mysql::Binary_log *binlog= new mysql::Binary_log(create_transport("mysql://root@127.0.0.1:13000")); - EXPECT_EQ(binlog->connect(),0); - mysql::Binary_log_event *event; - binlog->wait_for_next_event(&event); - EXPECT_TRUE(event->get_event_type() == mysql::ROTATE_EVENT); - delete event; - binlog->wait_for_next_event(&event); - EXPECT_TRUE(event->get_event_type() == mysql::FORMAT_DESCRIPTION_EVENT); - delete event; -} - -TEST_F(TestBinaryLog, SetPosition) -{ - using mysql::system::create_transport; - mysql::Binary_log_event *event; - mysql::Binary_log *binlog= new mysql::Binary_log(create_transport("mysql://root@127.0.0.1:13000")); - EXPECT_EQ(binlog->connect(),0); - std::string filename; - unsigned long position= binlog->get_position(filename); - int result= binlog->set_position(filename,4); - EXPECT_EQ(result,ERR_OK); - position= binlog->get_position(); - EXPECT_EQ(position, 4); - - binlog->wait_for_next_event(&event); -} - -int main(int argc, char **argv) { - ::testing::InitGoogleTest(&argc, argv); - - // TODO require that the connection string is passed as an argument to the - // test suite. - std::cout << "Important: Make sure that the MySQL server is started using " - "'mysql-test-run --mysqld=--log_bin=searchbin --mysqld=--binlog_format=row --start " - "alias' and that the server is listening on IP 127.0.0.1 and port" - " 13000." << std::endl; - return RUN_ALL_TESTS(); -} diff --git a/replication_listener/tests/test-transport.cpp b/replication_listener/tests/test-transport.cpp deleted file mode 100644 index 6d5ae451a..000000000 --- a/replication_listener/tests/test-transport.cpp +++ /dev/null @@ -1,136 +0,0 @@ -/* -Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights -reserved. - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; version 2 of -the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -02110-1301 USA -*/ - -#include "binlog_api.h" -#include -#include -#include - -using mysql::system::create_transport; -using mysql::system::Binary_log_driver; -using mysql::system::Binlog_tcp_driver; -using mysql::system::Binlog_file_driver; - -class TestTransport : public ::testing::Test { -protected: - TestTransport() { } - virtual ~TestTransport() { } -}; - -void CheckTcpValues(Binlog_tcp_driver *tcp, - const char *user, const char *passwd, - const char *host, unsigned long port) -{ - EXPECT_EQ(tcp->port(), port); - EXPECT_EQ(tcp->host(), host); - EXPECT_EQ(tcp->user(), user); - EXPECT_EQ(tcp->password(), passwd); -} - - -/** - Test a TCP transport URL. - */ -void TestTcpTransport(const char *uri, - const char *user, const char *passwd, - const char *host, unsigned long port) -{ - Binary_log_driver *drv= create_transport(uri); - EXPECT_TRUE(drv); - Binlog_tcp_driver* tcp = dynamic_cast(drv); - EXPECT_TRUE(tcp); - CheckTcpValues(tcp, user, passwd, host, port); - delete drv; -} - -/** - Test a file transport URL. - - @note We do not support user, password, host, or port in file URLs - yet, so we ignore those for the time being. - */ -void TestFileTransport(const char *uri_arg, const char *filename_arg) -{ - Binary_log_driver *drv= create_transport(uri_arg); - EXPECT_TRUE(drv); - Binlog_file_driver* file = dynamic_cast(drv); - EXPECT_TRUE(file); - std::string filename; - unsigned long position; - file->get_position(&filename, &position); - EXPECT_EQ(filename, filename_arg); - delete file; -} - - -TEST_F(TestTransport, CreateTransport_TcpIp) { - TestTcpTransport("mysql://nosuchuser@128.0.0.1:99999", - "nosuchuser", "", "128.0.0.1", 99999); - TestTcpTransport("mysql://nosuchuser@128.0.0.1:3306", - "nosuchuser", "", "128.0.0.1", 3306); - TestTcpTransport("mysql://nosuchuser:magic@128.0.0.1:3306", - "nosuchuser", "magic", "128.0.0.1", 3306); - TestTcpTransport("mysql://nosuchuser:magic@example.com:3306", - "nosuchuser", "magic", "example.com", 3306); - TestTcpTransport("mysql://somebody@128.0.0.1", - "somebody", "", "128.0.0.1", 3306); - - // Here are tests for bad URIs - - // Missing username - EXPECT_FALSE(create_transport("mysql://:xyzzy@128.0.0.1:99999")); - EXPECT_FALSE(create_transport("mysql://@128.0.0.1:99999")); - - // Missing hostname - EXPECT_FALSE(create_transport("mysql://somebody@:99999")); - EXPECT_FALSE(create_transport("mysql://somebody")); - EXPECT_FALSE(create_transport("mysql://somebody:xyzzy")); -} - -TEST_F(TestTransport, CreateTransport_File) { - TestFileTransport("file:///master-bin.000003", "/master-bin.000003"); - TestFileTransport("file:///etc/foo/master-bin.000003", "/etc/foo/master-bin.000003"); - - // Here are tests for bad URLs - const char *bad_urls[] = { - "file:master-bin.000003", - "file://somebody/master-bin.000003", - "file://somebody@localhost/master-bin.000003", - "file://master-bin.000003", - "file://somebody:xyzzy@localhost/master-bin.000003", - }; - - for (int i = 0 ; i < sizeof(bad_urls)/sizeof(*bad_urls) ; ++i) - EXPECT_FALSE(create_transport(bad_urls[i])); -} - -TEST_F(TestTransport, CreateTransport_Bogus) -{ - EXPECT_FALSE(create_transport("bogus-url")); - EXPECT_FALSE(create_transport("fil")); - EXPECT_FALSE(create_transport("fil://almost-correct.txt")); - EXPECT_FALSE(create_transport("file")); - EXPECT_FALSE(create_transport("mysq:")); -} - -int main(int argc, char **argv) { - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} diff --git a/replication_listener/src/value.cpp b/replication_listener/value.cpp similarity index 90% rename from replication_listener/src/value.cpp rename to replication_listener/value.cpp index 702520942..30c70bf0a 100644 --- a/replication_listener/src/value.cpp +++ b/replication_listener/value.cpp @@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include #include #include +#include #define DIG_PER_DEC1 9 @@ -50,20 +51,20 @@ int calc_field_size(unsigned char column_type, const unsigned char *field_ptr, b boost::uint32_t length; switch (column_type) { - case mysql::system::MYSQL_TYPE_VAR_STRING: + case MYSQL_TYPE_VAR_STRING: /* This type is hijacked for result set types. */ length= metadata; break; - case mysql::system::MYSQL_TYPE_NEWDECIMAL: + case MYSQL_TYPE_NEWDECIMAL: { int precision = (metadata & 0xff); int scale = metadata >> 8; length = decimal_bin_size(precision, scale); break; } - case mysql::system::MYSQL_TYPE_DECIMAL: - case mysql::system::MYSQL_TYPE_FLOAT: - case mysql::system::MYSQL_TYPE_DOUBLE: + case MYSQL_TYPE_DECIMAL: + case MYSQL_TYPE_FLOAT: + case MYSQL_TYPE_DOUBLE: length= metadata; break; /* @@ -71,13 +72,13 @@ int calc_field_size(unsigned char column_type, const unsigned char *field_ptr, b both are mapped to type MYSQL_TYPE_STRING and their real types are encoded in the field metadata. */ - case mysql::system::MYSQL_TYPE_SET: - case mysql::system::MYSQL_TYPE_ENUM: - case mysql::system::MYSQL_TYPE_STRING: + case MYSQL_TYPE_SET: + case MYSQL_TYPE_ENUM: + case MYSQL_TYPE_STRING: { //unsigned char type= metadata >> 8U; unsigned char type = metadata & 0xff; - if ((type == mysql::system::MYSQL_TYPE_SET) || (type == mysql::system::MYSQL_TYPE_ENUM)) + if ((type == MYSQL_TYPE_SET) || (type == MYSQL_TYPE_ENUM)) { //length= metadata & 0x00ff; length = (metadata & 0xff00) >> 8; @@ -94,39 +95,39 @@ int calc_field_size(unsigned char column_type, const unsigned char *field_ptr, b } break; } - case mysql::system::MYSQL_TYPE_YEAR: - case mysql::system::MYSQL_TYPE_TINY: + case MYSQL_TYPE_YEAR: + case MYSQL_TYPE_TINY: length= 1; break; - case mysql::system::MYSQL_TYPE_SHORT: + case MYSQL_TYPE_SHORT: length= 2; break; - case mysql::system::MYSQL_TYPE_INT24: + case MYSQL_TYPE_INT24: length= 3; break; - case mysql::system::MYSQL_TYPE_LONG: + case MYSQL_TYPE_LONG: length= 4; break; case MYSQL_TYPE_LONGLONG: length= 8; break; - case mysql::system::MYSQL_TYPE_NULL: + case MYSQL_TYPE_NULL: length= 0; break; - case mysql::system::MYSQL_TYPE_NEWDATE: + case MYSQL_TYPE_NEWDATE: length= 3; break; - case mysql::system::MYSQL_TYPE_DATE: - case mysql::system::MYSQL_TYPE_TIME: + case MYSQL_TYPE_DATE: + case MYSQL_TYPE_TIME: length= 3; break; - case mysql::system::MYSQL_TYPE_TIMESTAMP: + case MYSQL_TYPE_TIMESTAMP: length= 4; break; - case mysql::system::MYSQL_TYPE_DATETIME: + case MYSQL_TYPE_DATETIME: length= 8; break; - case mysql::system::MYSQL_TYPE_BIT: + case MYSQL_TYPE_BIT: { /* Decode the size of the bit field from the master. @@ -141,17 +142,17 @@ int calc_field_size(unsigned char column_type, const unsigned char *field_ptr, b length= from_len + ((from_bit_len > 0) ? 1 : 0); break; } - case mysql::system::MYSQL_TYPE_VARCHAR: + case MYSQL_TYPE_VARCHAR: { length= metadata > 255 ? 2 : 1; length+= length == 1 ? (boost::uint32_t) *field_ptr : *((boost::uint16_t *)field_ptr); break; } - case mysql::system::MYSQL_TYPE_TINY_BLOB: - case mysql::system::MYSQL_TYPE_MEDIUM_BLOB: - case mysql::system::MYSQL_TYPE_LONG_BLOB: - case mysql::system::MYSQL_TYPE_BLOB: - case mysql::system::MYSQL_TYPE_GEOMETRY: + case MYSQL_TYPE_TINY_BLOB: + case MYSQL_TYPE_MEDIUM_BLOB: + case MYSQL_TYPE_LONG_BLOB: + case MYSQL_TYPE_BLOB: + case MYSQL_TYPE_GEOMETRY: { switch (metadata) { @@ -242,7 +243,7 @@ char *Value::as_c_str(unsigned long &size) const char *str = const_cast(m_storage + metadata_length); - if (m_type == mysql::system::MYSQL_TYPE_VARCHAR && m_metadata > 255) { + if (m_type == MYSQL_TYPE_VARCHAR && m_metadata > 255) { str++; size--; } @@ -457,10 +458,10 @@ void Converter::to(std::string &str, const Value &val) const str_type = val.metadata() & 0xff; } - if (str_type == mysql::system::MYSQL_TYPE_SET) { + if (str_type == MYSQL_TYPE_SET) { str = "not implemented"; break; - } else if (str_type == mysql::system::MYSQL_TYPE_ENUM) { + } else if (str_type == MYSQL_TYPE_ENUM) { unsigned int val_storage = static_cast(*val.storage()); str = boost::str(boost::format("%u") % val_storage); break; diff --git a/replication_listener/include/value.h b/replication_listener/value.h similarity index 96% rename from replication_listener/include/value.h rename to replication_listener/value.h index c5183fb64..0185847c4 100644 --- a/replication_listener/include/value.h +++ b/replication_listener/value.h @@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA #include "protocol.h" #include #include +#include using namespace mysql; namespace mysql { @@ -54,7 +55,7 @@ int calc_field_size(unsigned char column_type, const unsigned char *field_ptr, class Value { public: - Value(enum system::enum_field_types type, boost::uint32_t metadata, const char *storage) : + Value(enum enum_field_types type, boost::uint32_t metadata, const char *storage) : m_type(type), m_storage(storage), m_metadata(metadata), m_is_null(false) { m_size= calc_field_size((unsigned char)type, @@ -92,7 +93,7 @@ public: * atual data) */ size_t length() const { return m_size; } - enum system::enum_field_types type() const { return m_type; } + enum enum_field_types type() const { return m_type; } boost::uint32_t metadata() const { return m_metadata; } /** @@ -144,7 +145,7 @@ public: double as_double() const; private: - enum system::enum_field_types m_type; + enum enum_field_types m_type; size_t m_size; const char *m_storage; boost::uint32_t m_metadata; diff --git a/table_replication_consistency/cmake_install.cmake b/table_replication_consistency/cmake_install.cmake index 41b8b0f11..00bee3f1b 100644 --- a/table_replication_consistency/cmake_install.cmake +++ b/table_replication_consistency/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /home/jan/skysql/skygateway/skygateway/table_replication_consistency +# Install script for directory: /home/jan/skysql/maxscale/table_replication_consistency # Set the install prefix IF(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -12,7 +12,7 @@ IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" "" CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") ELSE(BUILD_TYPE) - SET(CMAKE_INSTALL_CONFIG_NAME "Debug") + SET(CMAKE_INSTALL_CONFIG_NAME "") ENDIF(BUILD_TYPE) MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) @@ -33,15 +33,39 @@ IF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) ENDIF(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") + FOREACH(file + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so.0.1" + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so.1" + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so" + ) + IF(EXISTS "${file}" AND + NOT IS_SYMLINK "${file}") + FILE(RPATH_CHECK + FILE "${file}" + RPATH "") + ENDIF() + ENDFOREACH() FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES - "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/CMakeFiles/CMakeRelink.dir/libtable_replication_consistency.so.0.1" - "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/CMakeFiles/CMakeRelink.dir/libtable_replication_consistency.so.1" - "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/CMakeFiles/CMakeRelink.dir/libtable_replication_consistency.so" + "/home/jan/skysql/maxscale/table_replication_consistency/libtable_replication_consistency.so.0.1" + "/home/jan/skysql/maxscale/table_replication_consistency/libtable_replication_consistency.so.1" + "/home/jan/skysql/maxscale/table_replication_consistency/libtable_replication_consistency.so" ) + FOREACH(file + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so.0.1" + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so.1" + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libtable_replication_consistency.so" + ) + IF(EXISTS "${file}" AND + NOT IS_SYMLINK "${file}") + IF(CMAKE_INSTALL_DO_STRIP) + EXECUTE_PROCESS(COMMAND "/usr/bin/strip" "${file}") + ENDIF(CMAKE_INSTALL_DO_STRIP) + ENDIF() + ENDFOREACH() 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/table_replication_consistency/libtable_replication_consistency.a") + FILE(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE STATIC_LIBRARY FILES "/home/jan/skysql/maxscale/table_replication_consistency/libtable_replication_consistency.a") ENDIF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified") IF(CMAKE_INSTALL_COMPONENT) @@ -50,7 +74,7 @@ ELSE(CMAKE_INSTALL_COMPONENT) SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt") ENDIF(CMAKE_INSTALL_COMPONENT) -FILE(WRITE "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/${CMAKE_INSTALL_MANIFEST}" "") +FILE(WRITE "/home/jan/skysql/maxscale/table_replication_consistency/${CMAKE_INSTALL_MANIFEST}" "") FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES}) - FILE(APPEND "/home/jan/skysql/skygateway/skygateway/table_replication_consistency/${CMAKE_INSTALL_MANIFEST}" "${file}\n") + FILE(APPEND "/home/jan/skysql/maxscale/table_replication_consistency/${CMAKE_INSTALL_MANIFEST}" "${file}\n") ENDFOREACH(file) diff --git a/table_replication_consistency/table_replication_listener.cpp b/table_replication_consistency/table_replication_listener.cpp index 51cf75779..45e3406dc 100644 --- a/table_replication_consistency/table_replication_listener.cpp +++ b/table_replication_consistency/table_replication_listener.cpp @@ -39,6 +39,7 @@ Updated: #include "table_replication_parser.h" #include "table_replication_metadata.h" #include "log_manager.h" +#include "skygw_debug.h" using mysql::Binary_log; using mysql::system::create_transport; @@ -93,50 +94,51 @@ tbrl_extract_master_connect_info() char *body = master->server_url; size_t len = strlen(master->server_url); - /* Find the user name, which is mandatory */ - const char *user = body + 8; + /* Find the user name, which is mandatory */ + const char *user = body + 8; - const char *user_end= strpbrk(user, ":@"); + const char *user_end= strpbrk(user, ":@"); - assert(user_end - user >= 1); // There has to be a username + assert(user_end - user >= 1); // There has to be a username - /* Find the password, which can be empty */ - assert(*user_end == ':' || *user_end == '@'); - const char *const pass = user_end + 1; // Skip the ':' (or '@') - const char *pass_end = pass; - if (*user_end == ':') - { - pass_end = strchr(pass, '@'); - } - assert(pass_end - pass >= 0); // Password can be empty + /* Find the password, which can be empty */ + assert(*user_end == ':' || *user_end == '@'); + const char *const pass = user_end + 1; // Skip the ':' (or '@') + const char *pass_end = pass; + if (*user_end == ':') + { + pass_end = strchr(pass, '@'); + } + assert(pass_end - pass >= 0); // Password can be empty - /* Find the host name, which is mandatory */ - // Skip the '@', if there is one - const char *host = *pass_end == '@' ? pass_end + 1 : pass_end; - const char *host_end = strchr(host, ':'); - if (host == host_end) - /* If no ':' was found there is no port, so the host end at the end - * of the string */ - if (host_end == 0) - host_end = body + len; - assert(host_end - host >= 1); // There has to be a host + /* Find the host name, which is mandatory */ + // Skip the '@', if there is one + const char *host = *pass_end == '@' ? pass_end + 1 : pass_end; + const char *host_end = strchr(host, ':'); + if (host == host_end) { + /* If no ':' was found there is no port, so the host end at the end + * of the string */ + if (host_end == 0) + host_end = body + len; + } + assert(host_end - host >= 1); // There has to be a host - /* Find the port number */ - unsigned long portno = 3307; - if (*host_end == ':') - portno = strtoul(host_end + 1, NULL, 10); + /* Find the port number */ + unsigned long portno = 3307; + if (*host_end == ':') + portno = strtoul(host_end + 1, NULL, 10); - std::string u(user, user_end - user); - std::string p(pass, pass_end - pass); - std::string h(host, host_end - host); + std::string u(user, user_end - user); + std::string p(pass, pass_end - pass); + std::string h(host, host_end - host); - master_user = (char *)malloc(u.length()+1); - master_passwd = (char *)malloc(p.length()+1); - master_host = (char *)malloc(h.length()+1); - strcpy(master_user, u.c_str()); - strcpy(master_passwd, p.c_str()); - strcpy(master_host, h.c_str()); - master_port = portno; + master_user = (char *)malloc(u.length()+1); + master_passwd = (char *)malloc(p.length()+1); + master_host = (char *)malloc(h.length()+1); + strcpy(master_user, u.c_str()); + strcpy(master_passwd, p.c_str()); + strcpy(master_host, h.c_str()); + master_port = portno; } /***********************************************************************//** @@ -267,6 +269,56 @@ tbrl_update_server_status( } } +/***********************************************************************//** +Internal function to iterate through server metadata to find out if +we should continue from existing binlog position or gtid position.*/ +static bool +tbrl_get_startup_pos( +/*=================*/ + boost::uint32_t server_id, + boost::uint64_t *binlog_pos, + Gtid *gtid, + bool *gtid_known, + bool *use_binlog_pos) +{ + *use_binlog_pos = true; + *gtid_known = false; + *binlog_pos = 0; + + // Need to be protected by mutex to avoid concurrency problems + boost::mutex::scoped_lock lock(table_servers_mutex); + + map::iterator key = table_replication_servers.find(server_id); + + if (key != table_replication_servers.end()) { + // Found + tbr_server_t *mserver = (*key).second; + + // For MariaDB we know how to start from GTID position if + // that is specified, in MYSQL we use always binlog pos + + if (mserver->server_type == TRC_SERVER_TYPE_MARIADB) { + if (mserver->gtid_known) { + boost::uint32_t domain; + boost::uint32_t server; + boost::uint64_t sno; + sscanf((const char *)mserver->gtid, "%u-%u-%lu", &domain, &server, &sno); + *gtid_known = true; + *gtid = Gtid(domain, server, sno); + } else { + *binlog_pos = mserver->binlog_pos; + *use_binlog_pos = true; + } + } else { + *binlog_pos = mserver->binlog_pos; + *use_binlog_pos = true; + } + + return true; + } + + return false; +} /***********************************************************************//** This is the function that is executed by replication listeners. @@ -289,10 +341,43 @@ void* tb_replication_listener_reader( const char* server_type; Gtid gtid(0,1,31); bool gtid_known = false; + boost::uint64_t binlog_pos = 0; + bool use_binlog_pos = true; try { Binary_log binlog(create_transport(uri), uri); - binlog.connect(); + + // If the external user has provided the position where to + // continue we will use that. If no position is given, + // we try to use position from metadata tables. If all this + // is not available, we start from the begining of the binlog. + if (rlt->use_binlog_pos) { + binlog_pos = rlt->binlog_pos; + } else if (rlt->use_mariadb_gtid) { + boost::uint32_t domain; + boost::uint32_t server; + boost::uint64_t sno; + sscanf((const char *)rlt->gtid, "%u-%u-%lu", &domain, &server, &sno); + gtid = Gtid(domain, server, sno); + use_binlog_pos = false; + } else if (rlt->use_mysql_gtid) { + gtid(rlt->gtid); + use_binlog_pos = false; + } else { + // At startup we need to iterate through servers and see if + // we need to continue from last position + if(!tbrl_get_startup_pos(rlt->listener_id, &binlog_pos, >id, >id_known, &use_binlog_pos)) { + binlog_pos = 0; + use_binlog_pos = true; + } + } + + // Connect to server + if (use_binlog_pos) { + binlog.connect(binlog_pos); + } else { + binlog.connect(gtid); + } { // Need to be protected by mutex to avoid concurrency problems