Commit graph

464 commits

Author SHA1 Message Date
heikki@hundin.mysql.fi
7c63696a42 page0cur.c:
Fix bug in PAGE_CUR_LE_OR_EXTENDS search
2003-01-17 15:26:13 +02:00
heikki@hundin.mysql.fi
91ba134512 btr0btr.h, btr0btr.c, row0purge.c:
Backport from 4.0: fix the BLOB hang if the index tree is of height 1
2003-01-16 01:21:13 +02:00
heikki@hundin.mysql.fi
244b378b47 srv0srv.c:
Make SHOW INNODB STATUS aware which trx's are waiting because of innodb_thread_concurrency exceeded
2003-01-15 22:48:02 +02:00
heikki@hundin.mysql.fi
97279ea8de trx0trx.c:
Print also the thread ids in SHOW INNODB STATUS also in Linux
2003-01-15 21:26:45 +02:00
heikki@hundin.mysql.fi
7424bf2ea9 btr0cur.h, btr0btr.h, btr0btr.c, btr0cur.c, row0purge.c:
Fix a hang associated with an index tree of height 1 and purging of BLOB fields from it
2003-01-13 15:52:39 +02:00
heikki@hundin.mysql.fi
40689f64e7 srv0srv.c:
Add another diagnostic print to determine why the 'queries inside InnoDB' counter might drift upwards
2003-01-13 00:44:42 +02:00
heikki@hundin.mysql.fi
c314981049 trx0trx.c:
Add diagnostic prints to determine why the 'queries inside InnoDB' might drift upwards
ha_innodb.cc:
  Add more print space to SHOW INNODB STATUS; remove possible memory leak in case there is an error
2003-01-12 22:31:16 +02:00
heikki@hundin.mysql.fi
d1396cc047 mem0pool.c:
Remove the warning message that mem allocation spills from the additional mem pool to the OS; this does not hit performance with modern malloc libraries
2003-01-07 21:20:43 +02:00
heikki@hundin.mysql.fi
42095544ea log0log.c:
Backport bugfix from 4.0: combined log file size >= 2 GB could cause log to be written in wrong place
btr0pcur.c:
  Backport bugfix from 4.0: index cursor restoration could theoretically fail
2003-01-05 22:15:03 +02:00
heikki@hundin.mysql.fi
7d33418bcd btr0pcur.c:
Fix bug: an index cursor can theoretically be restored in a wrong place
log0log.c:
  Fix bug: if combined log file size is >= 2 GB in a 32-bit computer InnoDB can write log to a wrong position
2003-01-05 21:58:06 +02:00
monty@mashka.mysql.fi
9ecf9645eb A lot of portability fixes.
Added rename table for BDB. This fixes a bug in ALTER TABLE with BDB tables.
2003-01-05 20:18:49 +02:00
heikki@hundin.mysql.fi
843e1d8e9c Many files:
Merge InnoDB-4.0.7. Support for ON UPDATE CASCADE
sql_select.cc:
  Remove superfluous prints to .err log when a locking SELECT fails to a deadlock or a lock wait timeout
2002-12-22 01:54:29 +02:00
monty@mashka.mysql.fi
f03bbd3fe2 Merge with 3.23:
Remove duplicate casedn_str() in mysql_change_db()
Fix for null handling in CASE
2002-12-21 10:56:40 +02:00
heikki@hundin.mysql.fi
5d60d8e5cb btr0sea.c:
Remove an assertion which can fail in a race of 3 threads
2002-12-20 20:55:51 +02:00
monty@mashka.mysql.fi
62dfd57475 Removed compiler warnings
Fixed wrong variable name for Windows
2002-12-12 21:01:32 +02:00
monty@mashka.mysql.fi
5022e56cba Ensure that BEGIN / COMMIT is handled properly if slave dies
Added syntax support for
CREATE TABLE foo (a char CHARACTER SET latin1) CHARSET=latin1;
2002-12-11 15:46:39 +02:00
monty@mashka.mysql.fi
146814f2ea Merge with 3.23 2002-12-11 13:32:31 +02:00
heikki@hundin.mysql.fi
fdcb314fc6 row0mysql.c:
Heikki will merge to 4.0: cleanup
2002-12-05 22:09:51 +02:00
heikki@hundin.mysql.fi
5c3c4d3721 row0mysql.c, dict0dict.c, db0err.h, ha_innobase.cc:
Heikki will merge to 4.0: Prevent listing the same column twice in an InnoDB index: that will cause index corruption when that col is UPDATEd
2002-12-05 22:03:24 +02:00
heikki@hundin.mysql.fi
5783e800e4 row0sel.c:
Fix a hang introduced in 4.0.5 in INSERT INTO ... SELECT ... when binlogging is not on
2002-12-03 18:16:48 +02:00
heikki@hundin.mysql.fi
183a4a57aa ut0mem.c:
Flush stderr if we run out of memory, so that the error message more probably finds its way to the error log
2002-11-22 13:59:06 +02:00
heikki@hundin.mysql.fi
5fedf659d8 row0mysql.c, row0mysql.h:
Backport of bug fix in 4.0: do not x-lock rows under LOCK TABLES READ unless the table is a temp table
2002-11-19 16:54:52 +02:00
heikki@hundin.mysql.fi
4b73222d5a row0mysql.c, row0mysql.h, ha_innodb.cc, sql_table.cc, handler.h:
Fix crash when InnoDB temp table is truncated + fix bug: do not X-lock rows under LOCK TABLES except if the table is temp
2002-11-19 16:27:26 +02:00
heikki@hundin.mysql.fi
8a7d6cd2ab srv0start.c:
Print an error message if someone tries to call InnoDB startip more than once during process lifetime
2002-11-16 01:59:04 +02:00
heikki@hundin.mysql.fi
7ba423d9ed row0sel.c:
Backport from 4.0 a bug fix: if unique search from a primary key matched a delete-marked record, InnoDB could return the NEXT record
2002-11-13 16:24:50 +02:00
heikki@hundin.mysql.fi
d7d128cba9 row0sel.c:
Fix bug: if a unique search from a primary key matched to a delete-marked row, it could return the NEXT row
2002-11-13 15:45:05 +02:00
heikki@hundin.mysql.fi
7e5f1c2b2c dict0load.c:
Fix wrong sprintf argument
row0sel.c:
  Fix uninitialized variable error found by Miguel
2002-11-13 06:11:56 +02:00
monty@hundin.mysql.fi
b0f5c6d625 Merge work:/my/mysql-4.0 into hundin.mysql.fi:/my/mysql-4.0 2002-11-10 09:39:50 +02:00
monty@hundin.mysql.fi
cda8c9041f Added 4.1 protocol description 2002-11-10 09:39:00 +02:00
heikki@hundin.mysql.fi
60499d54dd Many files:
Try to skip over corrupt records in SELECT if innodb_force_recovery > 0; print more page hex dumps in CHECK TABLE
2002-11-09 18:23:09 +02:00
serg@serg.mysql.com
4571e1cdc9 Delete: innobase/stamp-h.in 2002-11-08 21:16:30 +01:00
heikki@hundin.mysql.fi
3f96bc0610 log0recv.c:
Removed compiler warnings about wrong printf formats
2002-11-08 18:44:42 +02:00
heikki@hundin.mysql.fi
d4cd385237 btr0btr.c, buf0buf.c:
Fix a glitch: under heavy ibuf activity InnoDB could print the whole contents of ibuf tree to the error log
2002-11-07 21:04:26 +02:00
heikki@hundin.mysql.fi
be51d6ae8c row0mysql.c:
Backport from 4.0: Fix corruption of ON DELETE CASCADE in lock wait timeout
2002-11-07 15:05:26 +02:00
heikki@hundin.mysql.fi
b31f909d7b Many files:
Fix hang introduced by selective deadlock resolution
srv0srv.c, row0mysql.c:
  Fix hang introduced by selective deadlock resolution + corruption caused by lock timeout or sel deadl res in ON DELETE CASCADE
2002-11-07 14:47:25 +02:00
monty@butch.
890b39bb68 merge 2002-11-07 12:49:01 +02:00
monty@butch.
a2bdf9265f Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
heikki@hundin.mysql.fi
db1693101b Many files:
Merge InnoDB-4.0.5b: minor improvements to foreign keys, more logical data dictionary lock
2002-11-06 00:41:27 +02:00
heikki@hundin.mysql.fi
23657e8c33 srv0start.h, srv0start.c, ha_innodb.cc:
Add check that sizeof(trx_t) is the same in ha_inndob.cc and InnoDB compilation modules
2002-10-31 12:03:34 +02:00
heikki@hundin.mysql.fi
629576aff6 ha_innobase.cc:
Backport from 4.0: Fix bug in MySQL-3.23 ORDER BY from a table with no PRIMARY KEY and where the user had added UNIQUE indexes with CREATE INDEX
pars0grm.y:
  Move inclusion of math.h after univ.i also in the .y file; this fix is already done in 4.0
2002-10-31 00:30:19 +02:00
heikki@hundin.mysql.fi
48b0cdc43f row0undo.c:
Partial fix to a hang introduced in CREATE TABLE in the push last night
2002-10-30 09:44:06 +02:00
heikki@hundin.mysql.fi
93b301ba95 lexyy.c:
Update instructions about editing the files generated by flex and bison
2002-10-30 00:11:40 +02:00
heikki@hundin.mysql.fi
392bb5ad50 configure.in:
In Linux do not printb thread id's but process no's in SHOW INNODB STATUS
2002-10-29 23:26:21 +02:00
heikki@hundin.mysql.fi
9153d88c6b Many files:
Merge InnoDB-4.0.5: new isolation levels READ COMMITTED and READ UNCOMMITTED now supported, selective deadlock resolution
mysqld.cc:
  Change MySQL default isolation level to REPEATABLE READ; note that InnoDB has always had that default, and BDB and MyISAM always run at SERIALIZABLE level anyway
2002-10-29 23:16:46 +02:00
serg@serg.mysql.com
dede6634f6 merged 2002-10-25 21:15:52 +00:00
heikki@hundin.mysql.fi
b5554c77aa lexyy.c, pars0grm.c:
Include univ.i before any system headers to remove a large file compilation failure on AIX
2002-10-25 20:15:30 +03:00
monty@hundin.mysql.fi
67d3cd643b Merge with 3.23.54 2002-10-16 13:11:25 +03:00
heikki@hundin.mysql.fi
31b69aff28 btr0cur.c:
Fix typo in earlier commit
2002-10-16 00:05:15 +03:00
heikki@hundin.mysql.fi
3652fe789b btr0cur.c:
Fix bug: range estimator exaggerated small range size greatly if the paths in the B-tree happened to branch on a high level
2002-10-16 00:05:14 +03:00
heikki@hundin.mysql.fi
399ba21d85 os0thread.c:
Fix compilation error on HP-UX-11: pthread_t is a scalar there, not a struct like in HP-UX-10.20
2002-10-11 15:44:45 +03:00
heikki@hundin.mysql.fi
32b25cbfce os0file.c:
SHOW INNODB STATUS always showed average bytes read as 0 in Unix
2002-10-06 14:53:49 +03:00
heikki@hundin.mysql.fi
cc1db6142f btr0cur.c:
Do not let range estimator to return over 1 / 2 of total rows in table; use longlong in range estimation
btr0cur.h, ha_innobase.cc:
  Use longlong in range estimation, in case there are > 4 billion rows
2002-10-05 22:23:51 +03:00
heikki@hundin.mysql.fi
9f9dc3adac lock0lock.c:
Fix bug: if SHOW INNODB STATUS or innodb_monitor printed several hundred transactions, the output was truncated and we forgot to release the kernel mutex
2002-10-03 23:07:32 +03:00
heikki@hundin.mysql.fi
4753ea60b0 os0thread.h:
Fix the probable reason why InnoDB versions after July 2, 2002 did not start properly in some Win 95/98/ME computers
2002-10-03 18:10:34 +03:00
heikki@hundin.mysql.fi
43f9ef5d0f lock0lock.c:
Fix bug: the AUTO-INC lock was held to the end of trx if it was granted after a lock wait
2002-10-01 13:47:58 +03:00
heikki@hundin.mysql.fi
62b2b08717 row0ins.c, ha_innodb.cc:
Table hash key len in query cache also includes null char at end
2002-09-22 01:38:48 +03:00
heikki@hundin.mysql.fi
a644b1f6e2 dict0dict.c:
Fix a crash introduced when we grew foreign key comment to 16000 chars
2002-09-21 18:47:56 +03:00
heikki@hundin.mysql.fi
2e0bffb9af srv0srv.c:
Fix typo
2002-09-20 05:50:25 +03:00
heikki@hundin.mysql.fi
f8d44429c5 srv0srv.h, srv0srv.c, row0mysql.c:
Put back a change unintentionally removed in the last 2 pushes
2002-09-20 05:44:41 +03:00
heikki@hundin.mysql.fi
55807d9553 trx0trx.ic, trx0trx.h, srv0srv.h, row0sel.h, dict0mem.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
2002-09-20 05:18:55 +03:00
heikki@hundin.mysql.fi
9e493e91e9 Many files:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
os0file.c:
  Use unbuffered i/o in Windows
2002-09-20 05:11:08 +03:00
monty@mashka.mysql.fi
3bb2660d10 Merge with 3.23.53 2002-09-17 05:17:32 +03:00
heikki@hundin.mysql.fi
a7a24b8a9c row0mysql.c:
Fix typos in previous push
2002-09-13 14:23:09 +03:00
heikki@hundin.mysql.fi
69f571db0c row0mysql.c:
Allow CREATE TABLE and DROP TABLE even if innodb_force_recovery is used, the user can drop a problematic table
2002-09-13 13:55:25 +03:00
heikki@hundin.mysql.fi
db8f4fd3d2 srv0srv.c, srv0srv.h:
Change srv_flush_log_at_trx_commit to ulint, note that ibool is defined as ulint, so this is purely formal change
os0file.c:
  Start using unbuffered i/o again in Windows because sequential read using normal i/o was 4 times slower in XP
2002-09-11 16:07:52 +03:00
monty@mashka.mysql.fi
8b7521eb7f Merge with 3.23.53 2002-09-11 14:49:38 +03:00
monty@mashka.mysql.fi
f3a186c905 Portability fixes.
Improve mysql-test to be more robust.
Fix that GRANT doesn't delete SSL options
Change innobase_flush_log_at_trx_commit to uint.
Don't rotate logs if we read a rotate log entry from the master.
2002-09-11 06:40:08 +03:00
heikki@hundin.mysql.fi
a9391f3cb5 os0file.c:
Fix a typo: should be buf_page_print
2002-09-10 13:06:14 +03:00
heikki@hundin.mysql.fi
8192d040c2 trx0undo.c:
Remove an assertion in trx0undo.c which could erroneously fail when we ran out of tablespace
2002-09-09 02:12:57 +03:00
heikki@hundin.mysql.fi
51f83ae199 sync0arr.c:
Increase max latch wait time to 600 seconds before we assert
2002-09-08 03:04:39 +03:00
heikki@hundin.mysql.fi
deedcb3a72 btr0cur.c:
Remove long latch hold which happened if we scanned long an index without finding any record visible to the current consistent read
2002-09-08 03:01:53 +03:00
heikki@hundin.mysql.fi
6cc7c5984b os0sync.c:
Add diagnostics to track why a semaphore creation failed on Windows ME
2002-09-08 00:21:13 +03:00
heikki@hundin.mysql.fi
d7bf8c2e6e srv0srv.c:
The option (= default) innodb_fast_shutdown did not always make the shutdown quickly, fix that
2002-09-07 23:37:27 +03:00
heikki@work.mysql.com
002d1c690a dict0dict.h Put back code inadvertently removed in previous bk commit
dict0dict.c	Put back code inadvertently removed in previous bk commit
2002-09-04 19:01:39 +02:00
heikki@work.mysql.com
a16f3360aa btr0btr.c Add more documentation about B-tree latching
ha_innodb.cc	Remove gaps in auto-inc in multi-row inserts, more space for foreign key listings in SHOW TABLE STATUS, move resetting of active_trx to amore logical place
dict0dict.h	Remove gaps from auto-inc sequence if errors in multi-row insert
dict0dict.c	Remove gaps from auto-inc sequence if errors in multi-row insert
2002-09-04 18:53:48 +02:00
serg@serg.mysql.com
b962da9aab merged 2002-08-31 23:38:10 +00:00
heikki@hundin.mysql.fi
42d46eb9ee os0file.c:
Put 'last millisecond' test to make sure page checksum errors do not result from memory corruption in InnoDB
os0thread.c, configure.in:
  Make sure stack size in InnoDB threads in AIX is at least 32 kB
2002-08-25 10:26:40 +03:00
monty@hundin.mysql.fi
791215f16b Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0 2002-08-24 16:36:28 +03:00
monty@mashka.mysql.fi
9b67b029ad Portability fix for AIX 4.3 powerpc with gcc 3.2 2002-08-24 16:32:16 +03:00
heikki@hundin.mysql.fi
d3ef9a5b33 lock0lock.c:
Fix a spurious deadlock introduced in the previous fix when next-key locks are requested for a page supremum record
2002-08-24 12:11:37 +03:00
heikki@hundin.mysql.fi
6b6a024eb5 lexyy.c, pars0lex.l, pars0grm.c, pars0grm.y:
Port alloca and Windows fix from 3.23
2002-08-24 01:31:25 +03:00
heikki@hundin.mysql.fi
8b637ac406 lexyy.c, pars0grm.c, pars0lex.l, pars0grm.y:
Remove potential memory leak caused by redefined alloca, remove include of unistd.h to allow compilation on Windows
2002-08-24 01:07:50 +03:00
heikki@hundin.mysql.fi
fd7106a4b3 lock0lock.c:
Eliminate a spurious deadlock when an insert waits for an update and a second update comes to wait after the insert
2002-08-24 00:21:18 +03:00
monty@hundin.mysql.fi
a9c1508d7e merge with 3.23 tree 2002-08-23 15:18:46 +03:00
heikki@hundin.mysql.fi
df5d7a5b91 row0mysql.c, ha_innobase.cc:
Improved error message for out-of-sync frm files
2002-08-23 10:52:24 +03:00
heikki@hundin.mysql.fi
4bdaf9c2c9 pars0grm.h, pars0grm.c, lexyy.c:
The lexer of InnoDB to 8-bit, it was 7-bit which made it crash on table names containing char codes > 127
pars0lex.l, pars0grm.y:
  Add InnoDB internal SQL interpreter grammar and lexer sources
2002-08-22 13:33:45 +03:00
heikki@hundin.mysql.fi
8b61e475f6 lock0lock.h, lock0lock.c:
Remove a spurious deadlock when >= 2 insert transactions have to wait because there is a next-key lock set
2002-08-22 13:22:04 +03:00
monty@hundin.mysql.fi
48e20a0be2 Portability fixes for HPUX and Openbsd 2002-08-18 16:07:19 +03:00
monty@hundin.mysql.fi
a5edb20042 Fixed timing problem with rpl000001 replication test.
Fixed configure problems with HPUX and openbsd
SHOW SLAVE STATUS returns empty set if slave is not initialized
SHOW MASTER STATUS returns empty set if binary logging is not enabled.
Fixed shutdown problem on Solaris.
2002-08-18 16:04:26 +03:00
monty@hundin.mysql.fi
f7c8bd0e47 Portability fixes for 4.0.3 build.
Don't update MyISAM index file on UPDATE if index is not changed
2002-08-17 18:02:56 +03:00
monty@hundin.mysql.fi
5773b6504a Fixed bug in blocking handling when compiling with OPENSSL (caused hangup in client code)
Fixed bug in SELECT DISTINCT ... ORDER BY not-used-column.
Fixed bug in pthread_mutex_trylock with HPUX 11.0
2002-08-17 00:35:51 +03:00
monty@hundin.mysql.fi
c531b43272 merge with 3.23.52 2002-08-13 02:33:25 +03:00
heikki@hundin.mysql.fi
a101405b03 os0thread.h, os0thread.c:
Fix a critical portability bug introduced in the Windows version
2002-08-13 01:22:27 +03:00
serg@sergbook.mysql.com
7cbe8b369a put InnoDB HANDLER patch back again :)) 2002-08-12 16:18:37 +02:00
serg@sergbook.mysql.com
efe85086c6 undo InnoDB HANDLER patch as it should not go into 3.23 tree 2002-08-12 15:11:58 +02:00
monty@hundin.mysql.fi
3ef9d44edc merge with 3.23.52 2002-08-12 04:04:43 +03:00
heikki@hundin.mysql.fi
1239863b64 trx0trx.h, trx0trx.c, ha_innobase.cc, ha_innobase.h:
Add tentative code which can be used in HANDLER implementation for InnoDB
2002-08-12 00:17:39 +03:00
heikki@hundin.mysql.fi
bee3f072e4 ha_innobase.cc, ut0ut.c, univ.i, ut0ut.h:
Redefine sprintf as ut_sprintf inside InnoDB code; some old Unixes may have a pointer as the return type of sprintf
lock0lock.c:
  Add safety against buffer overruns in latest deadlock info
srv0srv.c:
  Add safety against buffer overruns in SHOW INNODB STATUS
os0thread.h, os0thread.c:
  Fix a portability bug introduced in Windows when we changed os_thread_id_t to be the same as os_thread_t
2002-08-11 18:49:47 +03:00
heikki@hundin.mysql.fi
edf3929cd5 ha_innobase.cc, trx0trx.h, lock0lock.c, trx0trx.c:
Add some more safety margin to buffer sizes in prints
2002-08-09 15:34:23 +03:00
monty@hundin.mysql.fi
087261482a merge with 3.23.52 2002-08-08 15:24:47 +03:00
monty@mashka.mysql.fi
2c4fa340cc Lots of code fixes to the replication code (especially the binary logging and index log file handling)
Fixed bugs in my last changeset that made MySQL hard to compile.
Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables.
Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions
Extended my_chsize() to allow one to specify a filler character.
Extend vio_blocking to return the old state (This made some usage of this function much simpler)
Added testing for some functions that they caller have got the required mutexes before calling the function.
Use setrlimit() to ensure that we can write core file if one specifies --core-file.
Added --slave-compressed-protocol
Made 2 the minimum length for ft_min_word_len
Added variables foreign_key_checks & unique_checks.
Less logging from replication code (if not started with --log-warnings)
Changed that SHOW INNODB STATUS requre the SUPER privilege
More DBUG statements and a lot of new code comments
2002-08-08 03:12:02 +03:00
heikki@hundin.mysql.fi
042facc475 Many files:
Merge InnoDB-3.23.52d
2002-08-06 22:59:13 +03:00
heikki@hundin.mysql.fi
c282b73ad8 os0thread.c:
Remove the complex typecast used to convert a HP-UX pthread struct to os_thread_id_t; the typecast seemed to work wrong in gcc-3.1 on HP-UX-10.20
2002-08-03 21:53:42 +03:00
heikki@hundin.mysql.fi
7b4869d9a4 Many files:
Merge InnoDB-3.23.52c
ha_innobase.cc:
  Test the ref length sanity also in the production version
2002-08-02 23:16:19 +03:00
monty@hundin.mysql.fi
4f56ed82ec Innodb fixes:
Added back 'static inline', as not having this caused more problems than having it
Fixed wrong arguments to printf()
2002-08-01 00:37:27 +03:00
monty@hundin.mysql.fi
6899a4e30b Fixed wrong printf() string in InnoDB
Removed some compiler warnings regarding 'static' from InnoDB
2002-07-31 18:02:24 +03:00
heikki@hundin.mysql.fi
bbb8125a2c Many files:
Merge InnoDB-3.23.52c; improve AUTO-INC algorithm with SHOW TABLE STATUS; new checksum in log
2002-07-31 00:47:20 +03:00
heikki@hundin.mysql.fi
1ea4690b70 dyn0dyn.ic, dyn0dyn.h:
Backport the AIX crash fix changes from 4.0
2002-07-26 18:25:16 +03:00
heikki@hundin.mysql.fi
4b2f5cce80 row0vers.c:
Add diagnostic code to track a probable table corruption reported by a user
2002-07-25 22:51:43 +03:00
monty@mashka.mysql.fi
bc035c71f1 Merge with 3.23.51
Fixed wrong usage of sprintf() in ha_innodb.cc
2002-07-25 22:46:28 +03:00
monty@mashka.mysql.fi
dddc20d9d1 New SET syntax & system variables.
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups
2002-07-23 18:31:22 +03:00
heikki@hundin.mysql.fi
07711a6ead os0thread.c, configure.in:
Make the typecast trick pthread_t -> os_thread_id_t safer, but a full fix needs usage of appropriate Posix functions
2002-07-23 04:24:09 +03:00
heikki@hundin.mysql.fi
8dd4327ff8 univ.i:
Fix a bug in the storage of the SQL NULL value in 64-bit computers: the value code must fit in 32 bits
2002-07-23 01:59:43 +03:00
heikki@hundin.mysql.fi
f753fdd32f row0ins.c:
Move the assertion in foreign keys to the right place
2002-07-21 13:17:49 +03:00
heikki@hundin.mysql.fi
3c29c48964 dict0dict.c:
Revert the test changes to wait for a full push of new auto-inc algorithm
2002-07-21 13:09:57 +03:00
heikki@hundin.mysql.fi
51c80faed2 row0ins.c:
Do not perform ON DELETE action for a FOREIGN KEY constraint if we are doing an UPDATE, not a DELETE
dict0dict.c:
  test
2002-07-21 12:58:14 +03:00
heikki@hundin.mysql.fi
5b76647205 fil0fil.c:
Align a buffer for i/o from a raw device
2002-07-19 18:49:25 +03:00
heikki@hundin.mysql.fi
d7f2152b9e os0file.c:
Fix a bug in the previous commit change and align also the buffer in simulataled aio for possible use in i/o to raw devices
2002-07-19 17:09:40 +03:00
heikki@hundin.mysql.fi
2568a3b762 os0file.c:
Align the buffer used in initing a data file to zero; this may be needed if the data file is actually a raw device
2002-07-19 08:33:52 +03:00
heikki@hundin.mysql.fi
80e14f5b51 os0thread.h, srv0srv.c:
Increase max number of waiting threads to 10000 and put diagnostic prints if this value is exceeded
2002-07-16 13:59:24 +03:00
heikki@hundin.mysql.fi
f5dfd7e41c row0mysql.c:
Forgot to release an x-latch in DROP DATABASE
2002-07-10 19:55:27 +03:00
heikki@hundin.mysql.fi
0f0f9176b4 srv0srv.c:
Protect InnoDB monitor with a mutex
2002-07-09 18:13:59 +03:00
heikki@hundin.mysql.fi
7dce4bd340 srv0srv.c:
Remove debug code
2002-07-08 20:08:16 +03:00
heikki@hundin.mysql.fi
f96f69e403 srv0srv.c:
Eliminate potential division by zero
2002-07-08 20:04:10 +03:00
heikki@hundin.mysql.fi
7390d81f43 Many files:
Merge InnoDB-3.23.52b
2002-07-08 19:34:49 +03:00
heikki@hundin.mysql.fi
559bc0c12f srv0start.c:
Remove freeing of all memory at shutdown: since we do not exit the i/o-handlers and other threads, we could potentially get a seg fault at shutdown
2002-07-01 12:06:37 +03:00
monty@hundin.mysql.fi
6cb77c6b3e Portability fixes.
Don't free memory from InnoDB at exit (as this may be done before other threads are finnished)
2002-07-01 11:19:17 +03:00
heikki@hundin.mysql.fi
18bb600817 row0ins.c:
The UNIV_DEBUG version asserted if a foreign key check failed because of a lock wait timeout
btr0cur.c:
  Fix a bug: if the primary key was updated (or delete + insert) so that only the case of characters changed, we were left with a dangling adaptive hash index pointer, often causing an assertion failure in page0page.ic line 515
2002-07-01 02:19:58 +03:00
monty@hundin.mysql.fi
f87efa928b Update for running gcc 3.x (mainly on HPUX)
Portability fixes for HPUX
Rename of CHECK_LOCK to IS_FREE_LOCK
Apply lower_case_table_names also to databases
Cleanup of describe code
Don't allow \ in database names
2002-06-30 18:57:21 +03:00
heikki@hundin.mysql.fi
ded1170888 buf0buf.ic:
Fix a bug: if buffer pool size > 2 GB on a 32-bit computer, we got an assertion failure because >> acted as a division operator (not as a register shift) for a wrapped-over integer value
2002-06-26 21:42:40 +03:00
heikki@hundin.mysql.fi
7a94fdd405 os0file.c:
Crash the server if file flush does not succeed: the database can get corrupt, better to crash it than let it run
2002-06-26 10:09:11 +03:00
heikki@hundin.mysql.fi
0c5ad2d6cb os0sync.c:
Initing a mutex with MY_MUTEX_INIT_FAST may relieve thread thrashing on Linux
2002-06-22 23:31:51 +03:00
heikki@hundin.mysql.fi
128e872f3c Many files:
Merge 3.23.52
2002-06-22 20:41:14 +03:00
monty@bitch.mysql.fi
268e82a078 Merge hundin:/my/mysql-4.0 into bitch.mysql.fi:/my/mysql-4.0 2002-06-05 23:14:22 +03:00
monty@hundin.mysql.fi
e4130b11c9 removed init_count from IO_CACHE.
Added missing mutex_unlock to slave replication code.
2002-06-05 23:04:38 +03:00
monty@bitch.mysql.fi
0653326ed3 Merge hundin:/my/mysql-4.0 into bitch.mysql.fi:/my/mysql-4.0 2002-06-03 14:43:44 +03:00
monty@hundin.mysql.fi
f5ed8784a2 merge with 3.23.51 2002-05-16 18:20:49 +03:00
heikki@hundin.mysql.fi
59a00868c9 row0mysql.c:
Play safe and set a MySQL 1 - 12 byte BLOB reference to zero except for the length and pointer areas in it
2002-05-09 20:22:26 +03:00
heikki@hundin.mysql.fi
41a1af3b5f row0sel.c:
Monty said an SQL NULL BLOB field must have NULL as the data pointer value
2002-05-09 16:33:12 +03:00
heikki@hundin.mysql.fi
5aa9a391f5 row0mysql.c:
Add some diagnostic code to track BLOB bugs if they were not already fixed with the change in row0sel.c
row0sel.c:
  Fix a seg fault which was caused inside MySQL because InnoDB when returning a BLOB value did not initialize the length and the data pointer of a BLOB whose value is the SQL NULL; also fix a very improbable race condition which could occur if a row with an externally stored BLOB was fetched using the adaptive hash index
2002-05-09 16:13:09 +03:00
heikki@hundin.mysql.fi
9e51d1a5ee row0ins.c:
Fix an assertion failure in row0ins.c line 511 in case of a cascading delete caused by circularly referencing rows, when foreign keys are used
2002-05-02 11:12:49 +03:00
monty@hundin.mysql.fi
727122aadd merge 2002-04-25 01:16:42 +03:00
heikki@hundin.mysql.fi
626f5bff47 univ.i:
Prevent use of X86 assembler when WIN64 defined
2002-04-18 12:03:40 +03:00
heikki@hundin.mysql.fi
c8b5e41791 univ.i:
Make possible switch off X86 assembler usage in Windows: needed for the Itanium port
2002-04-18 10:50:42 +03:00
heikki@hundin.mysql.fi
8da85956dd Many files:
Implement ON DELETE CASCADE and facilitate switching off of UNIQUE constraints and foreign keys
2002-04-18 10:40:32 +03:00
heikki@hundin.mysql.fi
8a8f6be17a os0file.h:
Make sure Posix aio is never even tried to use
2002-04-11 15:51:01 +03:00
monty@hundin.mysql.fi
727e507bca merge with 3.23.50 2002-03-27 01:56:10 +02:00
heikki@hundin.mysql.fi
42c6e65c58 sync0rw.ic, ut0byte.ic:
Forgot to merge these to 3.23.50
2002-03-21 18:24:26 +02:00
heikki@hundin.mysql.fi
e90a57aa49 Many files:
Merge InnoDB-3.23.50
2002-03-21 18:03:09 +02:00
monty@bitch.mysql.fi
26875c9cc4 Merge hundin:/my/mysql-4.0 into bitch.mysql.fi:/my/mysql-4.0 2002-03-16 11:31:13 +02:00