1. 04 Nov, 2015 2 commits
    • Nirbhay Choubey's avatar
      MDEV-9026: Revert patch for MDEV-6069 · f9e320c8
      Nirbhay Choubey authored
      Post-fix:
      Reverting the patch for MDEV-6069 brought some ALTERs with
      ENGINE=MYISAM back into the mysql_system_tables_fix.sql
      script. As a result, running mysql_upgrade with global
      enforce_storage_engine=INNODB (or any other non-MyISAM
      engine, for that matter) would fail.
      
      Fixed by locally unsetting enforce_storage_engine in the
      upgrade script.
      f9e320c8
    • Vladislav Vaintroub's avatar
      MDEV-8738 Application Verifier stop during server shutdown · 1216429c
      Vladislav Vaintroub authored
      The verifier exception is caused by using thread local storage key
      after key was deleted.
      
      my_free() used current_thd within malloc size callback, which does
      pthread_get_specific(THR_THD), but THR_THD is already deleted at this
      point.
      
      The fix moves pthread_key_delete() to a later point in shutdown.
      1216429c
  2. 03 Nov, 2015 7 commits
  3. 01 Nov, 2015 1 commit
  4. 30 Oct, 2015 3 commits
  5. 29 Oct, 2015 6 commits
  6. 28 Oct, 2015 2 commits
  7. 22 Oct, 2015 5 commits
  8. 15 Oct, 2015 3 commits
  9. 14 Oct, 2015 7 commits
    • Sergei Golubchik's avatar
      fix lowercase* tests labrador · 534e4247
      Sergei Golubchik authored
      534e4247
    • Sergei Golubchik's avatar
      fix func_hybrid_type crash in --ps --embedded · 2a471e8e
      Sergei Golubchik authored
      create_embedded_thd() must reset current_thd before returning,
      otherwise client [de-]allocations will be happening in that
      stray THD context
      2a471e8e
    • Alexander Barkov's avatar
      Removing Used_tables_and_const_cache from "class udf_handler". · b867ade5
      Alexander Barkov authored
      It was used only temporary, during udf_handler::fix_fields() time,
      and then copied to the owner Item_func_or_sum object.
      Changing the code to use the Used_tables_and_const_cache part
      of the owner Item_sum_or_func object directly.
      b867ade5
    • Daniel Black's avatar
      MDEV-426: systemd PermissionsStartOnly=true by default · 3723c70a
      Daniel Black authored
      mariadb-service-convert during migration can create a file containing
      ExecStartPre=/usr/sbin/sysctl -q -w vm.drop_caches=3 if the users my.cnf
      contains [mysqld_safe] flush_caches. This sysctl entry change requires root
      access. No existing ExecStartPre requires execution requires execution
      as another user.
      
      There is a comment in the mariadb{,@}.service.in that indicates
      mysqld_install which would require -u mysql to explicity change user to
      mysql from root since PermissionsStartOnly=true.
      
      Otherwise the following error would be generated:
      Oct 14 07:38:38 spaceman systemd[1]: Starting MariaDB database server...
      -- Subject: Unit mariadb.service has begun start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit mariadb.service has begun starting up.
      Oct 14 07:38:38 spaceman sysctl[10089]: sysctl: permission denied on key 'vm.drop_caches'
      Oct 14 07:38:38 spaceman systemd[1]: mariadb.service: control process exited, code=exited status=255
      Oct 14 07:38:38 spaceman systemd[1]: Failed to start MariaDB database server.
      3723c70a
    • Daniel Black's avatar
      MDEV-426: systemd mariadb-sevice-convert - abs paths · 079cc48e
      Daniel Black authored
      Systemd config files need absolute paths.
      
      LimitCore was ment to be LimitCORE
      
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:7] Unknown lvalue 'LimitCore' in section 'Service'
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:9] Executable path is not absolute, ignoring: sync
      Oct 14 07:28:04 spaceman systemd[1]: [/etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf:10] Executable path is not absolute, ignoring: sysctl -q -w vm.drop_caches=3
      079cc48e
    • Daniel Black's avatar
      MDEV-426: mariadb-service-convert to use MYSQLD_OPTS · 82fb035e
      Daniel Black authored
      During the review process OPTIONS was converted to MYSQLD_OPTS.
      In the script mariadb-service convert, the ExecStart of the system
      also uses this setting.
      82fb035e
    • Nirbhay Choubey's avatar
  10. 12 Oct, 2015 4 commits
    • Sergey Vojtovich's avatar
      Fixed Fedora 22 package build failure. · 950e6f5b
      Sergey Vojtovich authored
      Since MariaDB packages have absolute paths, they are marked as not relocatable
      by setting CPACK_RPM_PACKAGE_RELOCATABLE. According to logics of recent CPackRPM
      it is not enough: one needs to set CPACK_PACKAGE_RELOCATABLE additionally.
      950e6f5b
    • Sergey Vojtovich's avatar
      MDEV-427/MDEV-5713 Add systemd script with notify functionality · 6346d1de
      Sergey Vojtovich authored
      After review/QA fixes.
      6346d1de
    • Daniel Black's avatar
    • Oleksandr Byelkin's avatar
      MDEV-8087: Server crashed in Time_and_counter_tracker::incr_loops · 92271c78
      Oleksandr Byelkin authored
      Problem:
      Procedure which uses stack of views first executed without most deep view.
      It fails but one view cached (as well as whole procedure).
      Then simultaniusely create the second view we lack and execute the procedure.
      In the beginning of procedure execution the view is not yet created so
      procedure used as it was cached (cache was not invalidated).
      But by the time we are trying to use most deep view it is already created.
      The problem with the view is that thd->select_number (first view was not parsed) so second view will get the same number.
      
      The fix is in keeping the thd->select_number correct even if we use cached views.
      In the proposed solution (to keep it simple) counter can be bigger then should but it should not create problem because numbers are still unique and situation is very rare.
      92271c78