1. 21 Sep, 2011 2 commits
    • Daniel Fischer's avatar
      merge from 5.5.16 · 7450044e
      Daniel Fischer authored
      7450044e
    • unknown's avatar
      Bug 12963823 - Crash in Purge thread under unusual circumstances. · d27d267e
      unknown authored
      The problem occurred when indexes are added between the time that an
      UNDO record is created and the time that the purge thread comes around
      and deletes the old secondary index entries.  The purge thread would
      hit an assert when trying to build a secondary index entry for
      searching.  The problem was that the old value of those fields were not
      in the UNDO record since they were not part of an index when the UPDATE
      occured. 
      A test case was added to innodb-index.test.
      d27d267e
  2. 20 Sep, 2011 2 commits
  3. 19 Sep, 2011 1 commit
  4. 16 Sep, 2011 3 commits
    • Rafal Somla's avatar
      Update of auth_rpl test. · c388e9c4
      Rafal Somla authored
      For some reason the test authentication plugin accepted connection with arbitrary password. But the intention of the plugin is that password should equal to the authentication string and in the later versions of the server connection fails if password is wrong. So I have updated auth_rpl test to specify the correct password.
      c388e9c4
    • Sergey Vojtovich's avatar
      Merge. · cb9e23bb
      Sergey Vojtovich authored
      cb9e23bb
    • Sergey Vojtovich's avatar
      BUG#11761180 - 53646: MYISAMPACK CORRUPTS TABLES WITH · 3f9cbd77
      Sergey Vojtovich authored
                     FULLTEXT INDEXES
      
      myisamchk may create incorrect fulltext index for compressed
      tables. Incorrect data pointer size was used while creating
      fulltext index.
      
      mysql-test/r/myisampack.result:
        A test case for BUG#11761180.
      mysql-test/t/myisampack.test:
        A test case for BUG#11761180.
      storage/myisam/ft_boolean_search.c:
        rec_reflength on share may have adjustments required for
        compressed tables and must be used instead of rec_reflength
        on base info.
      storage/myisam/ft_nlq_search.c:
        rec_reflength on share may have adjustments required for
        compressed tables and must be used instead of rec_reflength
        on base info.
      storage/myisam/mi_check.c:
        rec_reflength on share may have adjustments required for
        compressed tables and must be used instead of rec_reflength
        on base info.
      storage/myisam/mi_write.c:
        rec_reflength on share may have adjustments required for
        compressed tables and must be used instead of rec_reflength
        on base info.
      3f9cbd77
  5. 14 Sep, 2011 3 commits
    • Rafal Somla's avatar
      Bug#12897501 REPLICATION DOES NOT SUPPORT WINDOWS AUTH PLUG-IN · 93f2daf3
      Rafal Somla authored
      Connection of slave to master using a replication account which authenticates
      with an external plugin was not possible.
      
      Fixed by making sure that the CLIENT_PLUGIN_AUTH capability is set when client connects using mysql_real_connect(). Also, a plugin-dir path used by client library to locate authentication plugins is set based on the analogous server setting. This is done in connect_to_master() function before a call to mysql_real_connect().
      93f2daf3
    • Marko Mäkelä's avatar
      Merge mysql-5.1 to mysql-5.5. · 3d6fc171
      Marko Mäkelä authored
      3d6fc171
    • Marko Mäkelä's avatar
      Hopefully really final fix of Bug#11766591 59733: Possible deadlock · d60cdefc
      Marko Mäkelä authored
      when buffered changes are to be discarded
      
      sync_thread_add_level(level = SYNC_IBUF_INDEX_TREE): Relax a too strict
      condition that the thread must not be holding locks below SYNC_FSP_PAGE.
      It is perfectly valid to hold any latch above SYNC_IBUF_INDEX_TREE when
      acquiring the insert buffer tree latch.
      d60cdefc
  6. 13 Sep, 2011 6 commits
    • Vasil Dimov's avatar
      Merge mysql-5.1 -> mysql-5.5 · 3c18c370
      Vasil Dimov authored
      3c18c370
    • Jonathan Perkin's avatar
      Complete support for OL/RH6. · e715b761
      Jonathan Perkin authored
      e715b761
    • Vasil Dimov's avatar
      Re-enable the prefetch code in InnoDB internal SQL parser and fix two · 37f4decc
      Vasil Dimov authored
      bugs in it - accessing uninitialized ::len member (thanks, Jimmy!)
      and a memory leak.
      
      This is a followup to vasil.dimov@oracle.com-20110909070724-jvirxnpkbxieauz5
      which disabled the prefetch code.
      37f4decc
    • Joerg Bruehe's avatar
      Bug #58241 · 3690fa63
      Joerg Bruehe authored
      Please exclude make_binary_distribution from the distribution
      
      With cmake (5.5 and up), "make package" will do it,
      or cpack.
      The (generated) "scripts/make_binary_distribution" is just
      a wrapper around a "cpack" call,
      with path names set at build time.
      
      Similar, "make_win_bin_dist" is not needed any more.
      
      scripts/CMakeLists.txt:
        Cleanup:
        Append a trailing newline when generating "make_binary_distribution"
        (which is just a wrapper around a "cpack" call).
      support-files/mysql.spec.sh:
        "make_win_bin_dist" is removed from the sources,
        so its man page is gone,
        and it need not be removed when creating the RPMs.
      3690fa63
    • Marko Mäkelä's avatar
      Merge mysql-5.1 to mysql-5.5. · 3312a023
      Marko Mäkelä authored
      3312a023
    • Marko Mäkelä's avatar
      Hopefully final fix of Bug#11766591 59733: Possible deadlock · 34361698
      Marko Mäkelä authored
      when buffered changes are to be discarded
      
      ibuf_add_free_page(): Lower the latching order of the newly allocated page
      to SYNC_IBUF_TREE_NODE_NEW after latching the insert buffer tree root.
      
      This bug always was bogus UNIV_SYNC_DEBUG alarm. The function
      buf_block_dbg_add_level() is a no-op unless UNIV_SYNC_DEBUG is defined.
      34361698
  7. 12 Sep, 2011 4 commits
    • Jonathan Perkin's avatar
      Fix typos in last. · 741efeed
      Jonathan Perkin authored
      741efeed
    • Jonathan Perkin's avatar
      Add support for RHEL6 and OL6. · b82d6043
      Jonathan Perkin authored
      b82d6043
    • Marko Mäkelä's avatar
      Merge mysql-5.1 to mysql-5.5. · 3819529d
      Marko Mäkelä authored
      3819529d
    • Marko Mäkelä's avatar
      Bug#12601439 CONSISTENT READ FAILURE IN COLUMN PREFIX INDEX · cc496eb7
      Marko Mäkelä authored
      When there is a secondary index on a column prefix of an externally
      stored column and an entry in the secondary index is shorter than the
      reserved prefix length, it should mean that the secondary index entry
      is holding the complete column value. When comparing this secondary
      index column value to the column in the clustered index row, we must
      compare the entire prefix that was fetched from the clustered
      index. The bug was that we would just compare that the column in the
      clustered index starts with the value found in the secondary index
      column.
      
      This bug affects only the InnoDB Barracuda formats (ROW_FORMAT=DYNAMIC
      and ROW_FORMAT=COMPRESSED), in which columns that are stored off-page
      in the clustered index do not contain any prefix in the clustered
      index record.
      
      row_sel_sec_rec_is_for_blob(): Add the parameter prefix_len, for
      ifield->prefix_len. Add some assertions.
      
      Sorry, I did not manage to produce a test case. This patch does
      produce correct results on the data set that Michael isolated on our
      test machine. That was with the purge and background rollback
      suspended, because they would make the bug go away.
      
      rb:760 approved by Sunny Bains
      cc496eb7
  8. 09 Sep, 2011 3 commits
  9. 08 Sep, 2011 6 commits
  10. 07 Sep, 2011 10 commits
    • Chuck Bell's avatar
      99eeaee7
    • Chuck Bell's avatar
      BUG#12929345 : Execution aborts without any messages (Windows only) · 1e7f0637
      Chuck Bell authored
      This patch adds the length of the buffer in the strncat operation
      to prevent buffer overrun. 
      1e7f0637
    • Rafal Somla's avatar
      Bug#12873214 WINDOWS AUTHENTICATION PLUGIN PRODUCES EXCESSIVE RECORDS IN SERVER ERROR LOG · cee822ca
      Rafal Somla authored
            
      Changed semantics of AUTHENTICATION_WIN_LOG environment variable recognized by client library to accept the following values which are levels of logging done during Windows authentication handshake:
            
        0 - no logging
        1 - log only error messages
        2 - additionally log warnings
        3 - additionally log info notes
        4 - also log debug messages
            
      Setting it to 'on', 'yes' or 'true' will request log level 2 and setting it to 'debug' or 'dbug' will request log level 4.
      cee822ca
    • Chuck Bell's avatar
      BUG#12929345 : Execution aborts without any messages (Windows only) · 0750d88c
      Chuck Bell authored
      This patch corrects an unsafe string concatenation for a Windows-specific
      code segment. The symptoms were, under certain conditions like specifying
      the location of my-print-defaults and the basedir, and run on a release
      build, the client would exit without printing any messages. 
      0750d88c
    • Chuck Bell's avatar
      Merge with main · f83839a4
      Chuck Bell authored
      f83839a4
    • Vasil Dimov's avatar
      Merge mysql-5.1 -> mysql-5.5 · f8d8832d
      Vasil Dimov authored
      f8d8832d
    • Vasil Dimov's avatar
      Use cursors for seeking records in SYS_FOREIGN and SYS_INDEXES from · 10e7b948
      Vasil Dimov authored
      DROP_TABLE_PROC().
      
      With this change I observe a speedup from 6.2s to 0.1s when executing
      DROP_TABLE_PROC() during DROP TABLE with 512 foreign keys, like what
      is being done in innodb_bug56143.test
      
      This fixes "Bug#11765460 DROP TABLE USES INEFFICIENT METHODS TO REMOVE
      FKS/INDEXES FROM INNODB SYS TABLES"
      
      Reviewed by:	Marko
      10e7b948
    • Chuck Bell's avatar
      BUG#12929631 : Execute crashes with --verbose output (Windows) · b7478b96
      Chuck Bell authored
      This patch corrects an unsafe string concatenation in the Windows
      specific code for building the bootstrap command to enable or
      disable the plugin. 
      b7478b96
    • Georgi Kodinov's avatar
      Bug #12944747: MYSQL PROXY CAN'T DISTINGUISH WIN-AUTH DATA · 7822b78d
      Georgi Kodinov authored
      FROM OK PACKET
        
      There's no reliable way (without knowing the protocol variants that each
      plugin pair implements) to find out when does the authentication exchange
      end.
      The server is changed to send all the extra authentication packets that 
      server plugins need to send prefixed with the \x1 command.
      7822b78d
    • Mats Kindahl's avatar
      WL#5973: Support marking plugins as not possible · b5c334ef
      Mats Kindahl authored
               to install or uninstall dynamically
      
      This patch does the following:
      - Step the plugin interface version.
      - A flag field to the st_mysql_plugin structure that is
        used by plugins to provide basic information about the
        plugin.
      - Two new flags to mark that a plugin cannot be loaded
        or unloaded dynamically (from a running server) but
        has to be installed or uninstalled offline.
      - Two new error messages for reporting error when trying
        to install or uninstall a plugin marked as not instal-
        lable or not uninstallable.
      - Update all plugins to initialize the new flags field
        to 0 explicitly.
      
      This is a missing commit message for revision:
      
        mats.kindahl@oracle.com-20110815181211-4l94m162xs1mtrei
      b5c334ef