An error occurred fetching the project authors.
  1. 14 Mar, 2012 2 commits
  2. 31 Jan, 2012 1 commit
  3. 08 Dec, 2011 1 commit
  4. 02 Dec, 2011 2 commits
    • Sergei Golubchik's avatar
      1. add --plugin-dir and --default-auth to mysqltest. · d5fd757a
      Sergei Golubchik authored
      2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type
      3. split get_tty_password into get_tty_password_buff and strdup.
      4. dialog plugin now uses get_tty_password by default
      5. dialog.test
      6. moved small tests of individual plugins into a dedicated suite
      d5fd757a
    • Tor Didriksen's avatar
      Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS · b522a6ce
      Tor Didriksen authored
      handle_segfault is the signal handler code of mysqld.  however, it makes
      calls to potentially unsafe functions localtime_r, fprintf, fflush.
      
      
      
      include/my_stacktrace.h:
        Add safe versions of itoa() write() and snprintf().
      libmysqld/CMakeLists.txt:
        Move signal handler to separate file.
      mysys/stacktrace.c:
        Remove unsafe function calls.
      sql/CMakeLists.txt:
        Move signal handler to separate file.
      sql/mysqld.cc:
        Move signal handler to separate file.
      sql/set_var.h:
        Add missing #include dependency.
      sql/sys_vars.cc:
        Cleanup .h and .cc files.
      sql/sys_vars.h:
        Cleanup .h and .cc files.
      b522a6ce
  5. 30 Nov, 2011 1 commit
    • Tor Didriksen's avatar
      Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS · 9a15f249
      Tor Didriksen authored
      handle_segfault is the signal handler code of mysqld.  however, it makes
      calls to potentially unsafe functions localtime_r, fprintf, fflush.
      
      
      
      include/my_stacktrace.h:
        Add safe versions of itoa() write() and snprintf().
      libmysqld/CMakeLists.txt:
        Move signal handler to separate file.
      mysys/stacktrace.c:
        Remove unsafe function calls.
      sql/CMakeLists.txt:
        Move signal handler to separate file.
      sql/Makefile.am:
        Move signal handler to separate file.
      sql/mysqld.cc:
        Move signal handler to separate file.
      sql/signal_handler.cc:
        Remove unsafe function calls.
      9a15f249
  6. 26 Nov, 2011 1 commit
    • Vladislav Vaintroub's avatar
      Fix build and packaging on Windows: · 64e308e2
      Vladislav Vaintroub authored
      - build executables we have in 5.3 (mysql_install_db.exe, mysq_upgrade_service.exe, upgrade wizard), and MSI
      
      - add some missing headers to windows specific source files. 
      This needs to be done since 5.5 is using WIN32_LEAN_AND_MEAN preprocessor constant thus windows.h 
      no more includes whiole Windows
      
      - do not deliver perl scripts  (mysql_install_db.pl & friends)  -they do not work, are not documented, and we 
      have native executables for this functionality. do not pack echo.exe, replace.exe  into MSI, they 
      are not needed. Do not build resolveip on Windows, it is not used.
      
      - precache results of  of system checks in cmake/os/WindowsCache.cmake (like it is alreay done for  majority of tests
      to speed up cmake run with VS)
      
      - make feedback plugin DEFAULT on Windows (so MSI works if user enables plugin), 
      fix null pointer access in PSI_register
      64e308e2
  7. 17 Nov, 2011 1 commit
    • Rafal Somla's avatar
      Bug#13101974 SLAVE CAN'T CONNECT AS REPLICATION USER USING WINDOWS AUTH PLUGIN · 1f8efacc
      Rafal Somla authored
      Problem was that built-in client-side support for Windows Native Authentication (WNA) was included only in the client library, but not into the server code (which also uses some of the sources from the client library).
      
      This is fixed by modyfying sql/CMakeLists.txt to include the client-side WNA plugin library and enable WNA related code by defining AUTHENTICATION_WIN macro.
      
      Also, the logic of libmysql/CMakeLists.txt is simplified a bit.
      1f8efacc
  8. 29 Oct, 2011 1 commit
  9. 02 Nov, 2011 1 commit
  10. 21 Oct, 2011 1 commit
  11. 06 Oct, 2011 1 commit
  12. 20 Sep, 2011 1 commit
    • unknown's avatar
      MWL#192: Non-blocking client API for libmysqlclient. · a5b88159
      unknown authored
      All client functions that can block on I/O have alternate _start() and
      _cont() versions that do not block but return control back to the
      application, which can then issue I/O wait in its own fashion and later
      call back into the library to continue the operation.
      
      Works behind the scenes by spawning a co-routine/fiber to run the
      blocking operation and suspend it while waiting for I/O. This
      co-routine/fiber use is invisible to applications.
      
      For i368/x86_64 on GCC, uses very fast assembler co-routine support. On
      Windows uses native Win32 Fibers. Falls back to POSIX ucontext on other
      platforms. Assembler routines for more platforms are relatively easy to
      add by extending mysys/my_context.c, eg. similar to the Lua lcoco
      library.
      
      For testing, mysqltest and mysql_client_test are extended with the
      option --non-blocking-api. This causes the programs to use the
      non-blocking API for database access. mysql-test-run.pl has a similar
      option --non-blocking-api that uses this, as well as additional
      testcases.
      
      An example program tests/async_queries.c is included that uses the new
      non-blocking API with libevent to show how, in a single-threaded
      program, to issue many queries in parallel against a database.
      
      
      client/async_example.c:
        Fix const warning
        ******
        Fix bug with wrong timeout value for poll().
      include/Makefile.am:
        Fix missing include for `make dist`
      include/mysql.h:
        Add prototypes for all non-blocking API calls.
      include/mysql.h.pp:
        Add prototypes for all non-blocking API calls.
      mysys/my_context.c:
        Fix type warning for makecontext() function pointer argument.
      sql-common/mysql_async.c:
        Fix crashes in the non-blocking API for functions that can take MYSQL argument
        that is NULL.
      tests/Makefile.am:
        Add header file to `make dist`
      tests/mysql_client_test.c:
        Replace blocking calls with wrappers around the non-blocking calls, used in
        mysql_client_test to test the new non-blocking API.
      tests/nonblock-wrappers.h:
        Replace blocking calls with wrappers around the non-blocking calls, used in
        mysql_client_test to test the new non-blocking API.
      a5b88159
  13. 12 Aug, 2011 2 commits
  14. 16 Jul, 2011 1 commit
  15. 30 Jun, 2011 1 commit
  16. 04 May, 2011 1 commit
  17. 25 Apr, 2011 1 commit
  18. 23 Feb, 2011 1 commit
    • Michael Widenius's avatar
      Fixed build failures · 1c23091c
      Michael Widenius authored
      - Removed references to deleted files
      - If we link staticly, check for static zlib
        - This should fix the problem with 'no -lz found' link error
      - Fixed build failure on window (Patch from Wlad)
      - Fixed build problem with federatedx when using -Werror
      
      BUILD/Makefile.am:
        Remove removed file
      config/ac-macros/zlib.m4:
        If we compile with --all-static, test that we have a static libz
      libmysqld/CMakeLists.txt:
        Fix for build error on windows
      mysql-test/suite/pbxt/r/key_cache.result:
        Updated result
      mysql-test/suite/pbxt/t/key_cache.test:
        Fixed not updated test case
      sql/CMakeLists.txt:
        Fix for build error on windows
      storage/federatedx/Makefile.am:
        Don't use CFLAGS to compile C++ programs
      storage/pbxt/src/lock_xt.cc:
        Fixed compiler warning about using uninitialized b2
      storage/xtradb/buf/buf0buf.c:
        Fixed wrong printf
      storage/xtradb/srv/srv0srv.c:
        Fixed assignment of different width and test with different sign/unsigned
      1c23091c
  19. 21 Feb, 2011 1 commit
  20. 30 Jan, 2011 1 commit
  21. 29 Jan, 2011 1 commit
  22. 03 Jan, 2011 1 commit
  23. 06 Dec, 2010 1 commit
    • Vladislav Vaintroub's avatar
      Bug#473914: mysql_client_test fail with in debug compilaton on windows x64 · 0eae06c4
      Vladislav Vaintroub authored
       
      Reason: inconsistent compilation, federatedx is compiled without SAFEMALLOC
      flag, while anything else is compiled with SAFEMALLOC.
      
      As a consequence, my_hash_init used inside federatedx initialization does not
      provide correct caller info parameters (file, line) , so they are initialized with 
      whatever is on stack. When info about allocated memory is output in
      COM_DEBUG command, the server crashes trying to output string starting at
      0xcccccccccccccccc.
      
      The fix is to remove SAFEMALLOC  preprocessor flags 
      from every CMakeLists.txt, except the top-level one.
      
      Also, SAFEMALLOC is not defined by default now, instead
      there is WITH_DEBUG_FULL CMake option which adds 
      -DSAFEMALLOC to C and C++ flags in debug compilation. 
      This option is off by  default, because 
      1) Debug C runtime already has heap debugging builtin with 
       overwrite and leak detection
      2)safemalloc considerably slows down the tests.
      
      
      Note also  that 
      - SAFEMALLOC is gone  in MySQL5.5
      - On Windows, heap related overflows can also be found using free pageheap utility
      (that is also part of application verifier). This is even more efficient if there are no other layers 
      on top of Windows heap allocator, e.g  it is most efficient with release version.
      0eae06c4
  24. 01 Dec, 2010 1 commit
    • Vladislav Vaintroub's avatar
      Make maria 5.1 compilable on Visual Studio 2010 and remove Windows warnings · c87923dc
      Vladislav Vaintroub authored
        -  Remove all mentioning of /MAP /MAPINFO link options (does not work in VS2010).
           Remove map files from packaging.
        -  Fix warning about ETIMEDOUT being redefined.
        -  Fix  warning about FSP_EXTENT_SIZE in xtradb  (32/64 bit right shift mismatch)
        -  Silence warnings coming from  generated  code (flex/bison) in xtradb/innodb_plugin.
        -  Be nice to people without cygwin (me) and add win/configure-mariadb.bat with options suitable for quick compilation, e.g no embedded
      c87923dc
  25. 20 Nov, 2010 1 commit
    • Davi Arnaut's avatar
      WL#5665: Removal of the autotools-based build system · 8664de22
      Davi Arnaut authored
      The autotools-based build system has been superseded and
      is being removed in order to ease the maintenance burden on
      developers tweaking and maintaining the build system.
      
      In order to support tools that need to extract the server
      version, a new file that (only) contains the server version,
      called VERSION, is introduced. The file contents are human
      and machine-readable. The format is:
      
      MYSQL_VERSION_MAJOR=5
      MYSQL_VERSION_MINOR=5
      MYSQL_VERSION_PATCH=8
      MYSQL_VERSION_EXTRA=-rc
      
      The CMake based version extraction in cmake/mysql_version.cmake
      is changed to extract the version from this file. The configure
      to CMake wrapper is retained for backwards compatibility and to
      support the BUILD/ scripts. Also, a new a makefile target
      show-dist-name that prints the server version is introduced.
      
      VERSION:
        Add top-level version file.
      cmake/mysql_version.cmake:
        Get version information from the top-level VERSION file.
        Do not cache the version components (MAJOR_VERSION, etc).
        Add MYSQL_RPM_VERSION as a replacement for MYSQL_U_SCORE_VERSION.
      8664de22
  26. 19 Nov, 2010 1 commit
  27. 13 Nov, 2010 1 commit
  28. 28 Sep, 2010 1 commit
  29. 02 Sep, 2010 1 commit
    • Vladislav Vaintroub's avatar
      Small fixes in CMake: · 744c1013
      Vladislav Vaintroub authored
       create data dir correctly in initial_database target on Windows
       handle case where INSTALL_MYSQLTESTDIR is empty (e.g someone does not want
       to install tests)
      744c1013
  30. 31 Aug, 2010 1 commit
  31. 16 Aug, 2010 2 commits
    • Mattias Jonsson's avatar
    • Mattias Jonsson's avatar
      Bug#49907: ALTER TABLE ... TRUNCATE PARTITION does not wait for · 4b20ccaf
      Mattias Jonsson authored
                 locks on the table
      
      Fixing the partitioning specifics after TRUNCATE TABLE in
      bug-42643 was fixed.
      
      Reorganize of code to decrease the size of the giant switch
      in mysql_execute_command, and to prepare for future parser
      reengineering. Moved code into Sql_statement objects.
      
      Updated patch according to davi's review comments.
      
      libmysqld/CMakeLists.txt:
        Added new files.
      libmysqld/Makefile.am:
        Added new files.
      mysql-test/r/not_partition.result:
        now returning error on partitioning commands
        if partitioning is not enabled.
      mysql-test/r/partition_disabled.result:
        There is no partition handlerton, so it cannot
        find the specified engine in the .frm file.
      mysql-test/r/partition_truncate.result:
        Updated test results.
      mysql-test/suite/parts/inc/partition_mgm.inc:
        Added check that TRUNCATE PARTITION does not delete on failure.
      mysql-test/suite/parts/r/partition_debug_sync_innodb.result:
        updated results.
      mysql-test/suite/parts/r/partition_mgm_lc0_archive.result:
        updated results.
      mysql-test/suite/parts/r/partition_mgm_lc1_archive.result:
        updated results.
      mysql-test/suite/parts/r/partition_mgm_lc2_archive.result:
        updated results.
      mysql-test/suite/parts/t/partition_debug_sync_innodb.test:
        Test case for this bug.
      mysql-test/t/not_partition.test:
        Added check for TRUNCATE PARTITION without partitioning.
      mysql-test/t/partition_truncate.test:
        Added test of TRUNCATE PARTITION on non partitioned table.
      sql/CMakeLists.txt:
        Added new files.
      sql/Makefile.am:
        Added new files.
      sql/datadict.cc:
        Moved out the storage engine check into an own
        function, including assert for lock.
      sql/datadict.h:
        added dd_frm_storage_engine.
      sql/sql_alter_table.cc:
        moved the code for SQLCOM_ALTER_TABLE in mysql_execute_command
        into its own file, and using the Sql_statement object to
        prepare for future parser reengineering.
      sql/sql_alter_table.h:
        Created Sql_statement object for ALTER TABLE.
      sql/sql_lex.cc:
        resetting m_stmt.
      sql/sql_lex.h:
        Temporary hack for forward declaration of enum_alter_table_change_level.
      sql/sql_parse.cc:
        Moved out ALTER/ANALYZE/CHECK/OPTIMIZE/REPAIR TABLE
        from the giant switch into their own Sql_statement
        objects.
      sql/sql_parse.h:
        Exporting check_merge_table_access.
      sql/sql_partition_admin.cc:
        created Sql_statement for
        ALTER TABLE t ANALYZE/CHECK/OPTIMIZE/REPAIR/TRUNCATE
        PARTITION. To be able to reuse the TABLE equivalents.
      sql/sql_partition_admin.h:
        Added Sql_statement of partition admin statements.
      sql/sql_table.cc:
        Moved table maintenance code into sql_table_maintenance.cc
      sql/sql_table.h:
        Moved table maintenance code into sql_table_maintenance.h
        exporting functions used by sql_table_maintenance.
      sql/sql_table_maintenance.cc:
        Moved table maintenance code from sql_table.cc
      sql/sql_table_maintenance.h:
        Sql_statement objects for ANALYZE/CHECK/OPTIMIZE/REPAIR TABLE.
        Also declaring the keycache functions.
      sql/sql_truncate.cc:
        Moved code from SQLCOM_TRUNCATE in mysql_execute_command into
        Truncate_statement::execute.
        Added check for partitioned table on TRUNCATE PARTITION.
        Moved locking fix for partitioned table into
        Alter_table_truncate_partition::execute.
      sql/sql_truncate.h:
        Truncate_statement declaration (sub class of Sql_statement).
      sql/sql_yacc.yy:
        Using the new Sql_statment objects.
      4b20ccaf
  32. 13 Aug, 2010 1 commit
  33. 12 Aug, 2010 1 commit
  34. 09 Aug, 2010 2 commits
  35. 05 Aug, 2010 1 commit
    • Vladislav Vaintroub's avatar
      Build cleanups · b94d8621
      Vladislav Vaintroub authored
      - Simplify sql-bench installation, 
      do not try to resolve names : this leads to probem
      if builddir is symlink located on different filesystem.
      (reported by alik)
      
      - Make WITHOUT_XXX (disabling plugin) work for DEFAULT
      plugins. Prior to the patch is behaved just like 
      MANDATORY.
      
      - LINK_LIBRARIES in MYSQL_ADD_PLUGIN had no effect for
      statically linked plugins.
      
      - Fix constant rebuild of initdb target on Windows.
      b94d8621