Commit graph

22 commits

Author SHA1 Message Date
marko
80f54592c6 Merge changes from MySQL AB, as of the following changeset:
ChangeSet@1.2567, 2007-07-27 14:44:31+05:00, svoj@june.mysql.com +3 -0
  Merge mysql.com:/home/svoj/devel/mysql/BUG29957/mysql-5.0-engines
  into  mysql.com:/home/svoj/devel/mysql/BUG29957/mysql-5.1-engines
  MERGE: 1.1810.2871.44

One test case in innodb.test fails because of auto-increment
changes in r1562:1653:

$diff innodb.result innodb.reject
504c504
< 3	test2		this will work
---
> 4	test2		this will work
2007-07-31 05:56:17 +00:00
vasil
61629c32f8 Introduce a lock queue iterator for easy (and opaque) traversing of lock
queues. Supports table and record lock queues via the same interface.

There is only "get previous" method because currently there is no need
for "get next" - it would be unused. Feel free to add one if needed.

Approved by:	Heikki
2007-07-17 15:08:04 +00:00
vasil
eb0b8ef99d Move lock_get_type() from lock/lock0lock.c to include/lock0priv.ic:
* lock0lock.c: remove lock_get_type() and include include/lock0priv.ic
* lock0priv.h: include lock0priv.ic and add lock_get_type() prototype
* Makefile.am: add lock0priv.ic to noinst_HEADERS
* lock0priv.ic: introduce this new file containing the body of
  lock_get_type()

This move is necessary in order to use lock_get_type() from other lock/
source files (it's going to be used in lock/lock0iter.c).

Approved by:	Heikki
2007-07-17 13:41:51 +00:00
vasil
2e95eaeec0 Add include/lock0priv.h to noinst_HEADERS in Makefile.am. 2007-07-17 07:42:43 +00:00
marko
455e07b6a4 Make InnoDB pluggable. That is, merge the modifications from MySQL WL#2936
and adapt some things.

Note that ha_innodb.cc depends on mysql_tmpfile() being declared in
<mysql/plugin.h>.  Until the function is declared there, you can
uncomment the buggy definition of mysql_tmpfile in ha_innodb.cc.

Remove storage/innobase/*/Makefile.am.  The whole compilation is driven by
storage/innobase/Makefile.am and storage/innobase/plug.in.

plug.in: Declare InnoDB as a dynamic plugin.

ha_innodb.h: Remove the declarations of many global variables.  The variables
are no longer directly referenced outside of storage/innobase.

trx_t: Add the field trx->duplicates.

trx_create(): Initialize the fields trx->active_trans and trx->duplicates.

innobase_query_is_update(): Remove.  Consult trx->duplicates instead.
2007-05-10 11:31:36 +00:00
marko
7ad2c906e3 Merge a change from MySQL AB, to fix a mistake made
in Makefile.am in r1353 by marko (shame on him):

ChangeSet@2007-03-30 06:57:58+02:00, msvensson@pilot.blaudden 
  Add missing \ causing CMakelists.txt etc not to be included in dist
2007-04-19 11:29:38 +00:00
marko
be2100c7c9 Makefile.am: EXTRA_DIST: Add the grammar source files to the
source distribution of MySQL.
2007-03-15 20:47:58 +00:00
marko
79b0e5d2dc Merge a change from MySQL AB:
ChangeSet@1.2372, 2006-12-31 02:29:11+01:00, kent@mysql.com +79 -0
  Many files:
    Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header
    Adjusted year(s) in copyright header 
    Added GPL copyright text
2007-01-11 09:36:27 +00:00
marko
fcbfbc4c34 Merge changes from MySQL AB.
dict_col_copy_type_noninline(): Remove the return statement.
Some compilers do not allow return expressions of void type.

innobase_start_or_create_for_mysql(): Do not cap srv_max_threads to 1000
on Windows.

Makefile.am (EXTRA_DIST): Add plug.in
2006-10-05 11:00:06 +00:00
marko
7cf4bf45b9 Move ha_innodb.cc and ha_innodb.h from sql to storage/innobase/handler.
This was submitted by Marko to MySQL AB and merged to the MySQL tree by
Brian Aker in the following two changesets:

ChangeSet
  2006/09/07 08:23:58-07:00 brian@zim.(none) 
  Moves Innodb handler to the Innodb storage directory.

ChangeSet
  2006/09/07 16:17:16-07:00 brian@zim.(none) 
  Warning fixes for Windows, and an include fix for Windows for Innodb.

storage/innobase/CMakeLists.txt
  2006/09/07 16:17:13-07:00 brian@zim.(none) +6 -1
  Fixed includes for Windows
2006-09-11 08:51:46 +00:00
marko
71cdd575f7 Merge changes from MySQL AB:
ChangeSet
  2006/08/23 13:59:16-07:00 brian@zim.(none) 
  This patch removes need for a innodb to have its own configure. 

univ.i: Replace ../ib_config.h with config.h.

Makefile.i, Makefile.am: Change directory paths.

configure.in: Delete.

plug.in: New file, included from the top-level configure.in.

setup.sh: Replace configure.in with plug.in.
2006-08-30 20:29:01 +00:00
osku
0a2d8d4a9f Makefile.am: Add some missing files to EXTRA_DIST. 2006-06-15 04:43:58 +00:00
osku
bb83ec4fb2 From MySQL:
Rename cmakelists.txt to CMakeLists.txt.
2006-06-02 07:22:40 +00:00
osku
879aa87a32 Add innobase_convert_string wrapper function to ha_innodb.cc, and a new file
ha_prototypes.h.
2006-05-11 04:51:52 +00:00
marko
b17f2879fe Merge a change from MySQL AB to Makefile.am:
ChangeSet@2006/04/29 09:33:34-07:00 serg@sergbook.mysql.com
make distcheck and cosmetic fixes
2006-05-08 09:33:28 +00:00
osku
1b71285f05 Add a work queue implementation. 2006-04-26 12:14:50 +00:00
osku
3a1b90f1cc Add a normal linked-list implementation. 2006-04-26 11:58:07 +00:00
osku
d494736959 From MySQL:
Add cmakelists.txt to Makefile.Am.
2006-04-24 05:18:28 +00:00
osku
1690e0deed Add ib_vector datatype. 2006-04-06 05:20:06 +00:00
osku
7d3e9fd60b From MySQL:
Restore "make dist" for the header files in "innobase/include".
2005-12-20 09:41:30 +00:00
marko
fde85d5b04 Remove include/Makefile.am and the references to it. 2005-11-03 11:23:49 +00:00
osku
c307820962 Import 5.0 code. 2005-10-27 07:29:40 +00:00