Commit graph

83 commits

Author SHA1 Message Date
osku
f8d46a00bf Add 'level' parameter to rw_lock_create(), remove rw_lock_set_level(). 2006-04-28 05:49:59 +00:00
osku
3762ef7d66 Add 'level' parameter to mutex_create(), remove mutex_set_level().
Rename SYNC_LEVEL_NONE to SYNC_LEVEL_VARYING, add comment clarifying what it
is used for.
2006-04-28 05:43:08 +00:00
osku
35049cac22 univ.i: Make debug checks easily togglable. 2006-04-28 05:35:56 +00:00
osku
3215330058 Add mem_heap_dup(). 2006-04-26 12:17:36 +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
1542ec0aa7 Remove remnants of the obsolete concept of memoryfixing tables and indexes.
Remove unused dict_table_LRU_trim().

Remove unused 'trx' parameter from the functions dict_table_get_on_id_low,
dict_table_get and dict_table_get_and_increment_handle_count.
2006-04-24 09:39:13 +00:00
osku
86afa36881 Add platform-specific os_thread_ret_t and OS_THREAD_DUMMY_RETURN, and
convert thread start functions to use them.
2006-04-21 12:09:12 +00:00
osku
2ceffc0d08 Make 'thread_id' parameter in os_thread_create() optional. 2006-04-21 12:06:23 +00:00
osku
6c0714b80c Remove srv_sys->operational since it is unused. 2006-04-21 07:04:02 +00:00
osku
92d7e9e5e2 Remove obsolete and unused global variables from srv0srv.c. 2006-04-20 11:06:41 +00:00
osku
e83b1a8b3e Add mem_heap_strcat(). 2006-04-17 08:13:07 +00:00
marko
17f5482b24 dict_table_t: Remove the field "type".
dict_load_table(): Refuse to load tables with other TYPE than
DICT_TABLE_ORDINARY.
2006-04-12 12:18:54 +00:00
jan
5e1e279bb2 Add general function to evaluate a sql query. Add function to evaluate
dulints in host variables.
2006-04-12 10:40:22 +00:00
osku
6e6c0a4257 Fix bug #18934, "InnoDB crashes when table uses column names like
DB_ROW_ID", by refusing tables that use reserved column names.

Add dict_mem_table_free(), use it instead of duplicating the code everywhere.

Use already existing dict_mem_index_free().

Fix memory leaks in row_create_table_for_mysql() in rare corner cases.
2006-04-11 14:01:17 +00:00
marko
e437014d3e Remove code related to clustered tables. They were never implemented, and
the implementation would be challenging with ROW_FORMAT=COMPACT.

Remove the table types DICT_TABLE_CLUSTER_MEMBER and DICT_TABLE_CLUSTER and
all related tests and functions.

dict_table_t: Remove mix_id, mix_len, mix_id_len, mix_id_buf, and
cluster_name.

plan_t: Remove mixed_index.

dict_create_sys_tables_tuple(): Set MIX_ID=0, MIX_LEN=0 and CLUSTER_NAME=NULL
when inserting into SYS_TABLES.

dict_tree_check_search_tuple(): Enclose in #ifdef UNIV_DEBUG.
2006-04-11 12:51:34 +00:00
osku
cd6d32fad1 Remove too strict assertions from some dict_table_t accessor functions. 2006-04-10 14:54:05 +00:00
osku
b4f9e1e90c Add row_fetch_store_uint4(). 2006-04-07 07:15:03 +00:00
osku
46010b1f50 Add ib_uint32_t typedef. 2006-04-07 07:12:42 +00:00
osku
d8671ebb7c From MySQL:
Add Windows makefile 'cmakelists.txt' (Note that I had to add ut0vec.c to
it.)

Modify univ.i to not include ib_config.h on Windows.
2006-04-07 05:27:02 +00:00
osku
1953a7ba68 univ.i: Remove unused 'utfloat' typedef. 2006-04-06 15:13:17 +00:00
osku
c37316d9a8 Rename ib_vector typedef to ib_vector_t. 2006-04-06 10:02:44 +00:00
osku
be5145c94b Since the function definitions in pars_info_t are accessed after pars_sql()
returns in the query graph execution stage, we can't free pars_info_t in
pars_sql(). Instead, make pars_sql() transfer ownership of pars_info_t to
the created query graph, and make que_graph_free() free it if needed.
2006-04-06 07:52:14 +00:00
osku
36d98ce832 Rewrite pars_info datatypes and APIs, add a few helper functions. 2006-04-06 05:20:59 +00:00
osku
1690e0deed Add ib_vector datatype. 2006-04-06 05:20:06 +00:00
marko
70a2e99e67 Disable the statistics variables btr_search_n_hash_fail and
n_hash_succ, n_hash_fail, n_patt_succ, and n_searches of btr_search_t
in builds without #ifdef UNIV_SEARCH_PERF_STAT.
2006-04-03 11:28:43 +00:00
osku
6cd0ecddd4 Support DATA_VARCHAR for bound literals.
pars_bound_lit_t: Change 'address' from 'void*' to 'const void*'.
2006-04-01 09:41:58 +00:00
osku
25de125c4a Add support for bound literals in the SQL parser. 2006-04-01 06:06:59 +00:00
osku
d595b8267f Add comment clarifying the difference between 'alias' and 'indirection'
fields in sym_node_t.
2006-03-31 04:58:45 +00:00
osku
148369f5b1 Support user-function callbacks for processing results of FETCH statements
in InnoDB's SQL parser.
2006-03-29 11:20:29 +00:00
jan
68908aba17 Print approximate number or record locks (bits set in the bitmap) for
this transaction to innodb_lock_monitor and show innodb status. Since 
delete-marked records maybe removed, the record count will not be precise.
2006-03-29 07:18:44 +00:00
osku
b8f6fa77f1 Port r371 and r372 from branches/fts:
Add support for the EXIT keyword in InnoDB's SQL parser.

Add short introduction to query graphs.
2006-03-28 06:41:31 +00:00
jan
cf06d8d965 Setting a isolation level of the transaction to read committed
weakens the locks for this session similarly like the option
innodb_locks_unsafe_for_binlog. This patch removes almost all
gap locking (used in next-key locking) and makes MySQL to release
the row locks on the rows which does not belong to result set.
Additionally, nonlocking selects on INSERT INTO SELECT,
UPDATE ... (SELECT ...), and CREATE ... SELECT ... use a
nonlocking consistent read. If a binlog is used, then binlog
format should be set to row based binloging to make the execution
of the complex SQL statements.
2006-03-27 05:33:30 +00:00
osku
ee99d219a8 Add support for UNSIGNED types in InnoDB's SQL parser.
Remove trailing whitespace from flex/bison input files.
2006-03-17 12:44:34 +00:00
marko
caf6ee67eb Merge r328:340 from branches/5.0:
r340: Fix http://bugs.mysql.com/bug.php?id=18283 in ha_innodb.cc and
http://bugs.mysql.com/bug.php?id=18238 in InnoDB

r339: Remove disk space leak on update of BLOB columns (Bug #18252).

btr_cur_pessimistic_update(): Invoke rec_get_offsets() after
rec_set_field_extern_bits().

btr_store_big_rec_extern_fields(): Note that offsets will no longer be
valid after calling this function.

r338: Fix bug 18238 : check in pessimistic insert and update if the buffer
pool is exhausted by locks
2006-03-17 08:20:14 +00:00
osku
08debc00d8 Add (void*) casts when using the %p printf format specifier.
When using GCC, use __inline__ instead of inline.

Add disabled-by-default logic to configure.in to switch GCC to a strict
C89-mode.
2006-03-16 07:47:55 +00:00
marko
33961d88d6 Merge r328 from branches/5.0:
Remove UNIV_RELEASE_NOT_YET_STABLE and related checks.

page_rec_is_comp(): Remove the bounds check.

row_sel_field_store_in_mysql_format(): Turn the assertions on mbminlen,
mbmaxlen and templ->type into debug assertions.
2006-03-15 11:02:14 +00:00
marko
7c145068d1 Do not use inlined functions in ha_innodb.cc.
Add dict_table_is_comp_noninline().  Replace calls to dict_table_is_comp()
in ha_innodb.cc with dict_table_is_comp_noninline().
2006-03-13 09:27:34 +00:00
marko
77ea4442ca Replace buf_block_align(btr_cur_get_page()) with
buf_block_align(btr_cur_get_rec()).
2006-03-10 14:41:44 +00:00
osku
02a691bfda Port parts of r297 from branches/fts:
row_upd_index_replace_new_col_vals_index_pos(): Add a parameter, "ibool
order_only", for limiting the replacement to the ordering fields of the
index. Adjust callers.

 In this port, the comment for the parameter was adjusted to make it clear
 that it only supports clustered indexes.
2006-03-10 11:06:33 +00:00
osku
82ddfc2872 Port parts of r262 from branches/fts:
Add HASH_MIGRATE().
2006-03-10 11:01:41 +00:00
osku
803356ed32 Port parts of r211 from branches/fts:
Add ut_strcount() and ut_strreplace().
2006-03-10 11:00:58 +00:00
osku
d92521c793 Port parts of r211 from branches/fts:
Add dict_table_get_low_noninlined().
2006-03-10 10:58:58 +00:00
osku
feedcc9ed5 Port r292 from branches/fts:
Move printing of dfield_t values from dtuple_print to a new function,
dfield_print_raw.
2006-03-08 13:30:54 +00:00
osku
a7355764e9 Change ut_print_buf() and mem_analyze_corruption() to take a void*, not a
byte*. Remove redundant casts from callers.
2006-03-06 09:45:04 +00:00
jan
ab31234569 Remove trailing whitespaces and fix style on function comments. 2006-03-02 07:57:10 +00:00
jan
758331dc00 Fix for bug #12456: Cursor shows incorrect data - DML does not affect,
probably caching. Fixed test results.

This patch implements a high-granularity read view to be used with
cursors. In this high-granularity consistent read view modifications 
done by the creating transaction after the cursor is created or 
future transactions are not visible. But those modifications that 
transaction did before the cursor was created are visible.
2006-03-01 07:47:14 +00:00
osku
4b62d9b8f4 Fix assert in HASH_DELETE so it actually tests something useful. 2006-02-28 13:32:12 +00:00
osku
78971825b2 Remove "ibool comp" from dict_table_t and replace it with "ulint flags"
which can contain the new flag DICT_TF_COMPACT. Change dict_mem_table_create
to take a flags argument. Add dict_table_is_comp(). Adapt all users.

Change some places to explicitly assume that system tables do not use the
compact page format.
2006-02-27 09:11:57 +00:00
osku
8505ff17c8 Fix invalid brace positioning and spaces before tabs. 2006-02-24 09:53:01 +00:00