Commit graph

6 commits

Author SHA1 Message Date
monty@mysql.com
e42c980967 Table definition cache, part 2
The table opening process now works the following way:
- Create common TABLE_SHARE object
- Read the .frm file and unpack it into the TABLE_SHARE object
- Create a TABLE object based on the information in the TABLE_SHARE
  object and open a handler to the table object

Other noteworthy changes:
- In TABLE_SHARE the most common strings are now LEX_STRING's
- Better error message when table is not found
- Variable table_cache is now renamed 'table_open_cache'
- New variable 'table_definition_cache' that is the number of table defintions that will be cached
- strxnmov() calls are now fixed to avoid overflows
- strxnmov() will now always add one end \0 to result
- engine objects are now created with a TABLE_SHARE object instead of a TABLE object.
- After creating a field object one must call field->init(table) before using it

- For a busy system this change will give you:
 - Less memory usage for table object
 - Faster opening of tables (if it's has been in use or is in table definition cache)
 - Allow you to cache many table definitions objects
 - Faster drop of table
2005-11-23 22:45:02 +02:00
tomas@poseidon.ndb.mysql.com[tomas]
41271735f4 Ndb handler cleanup:
- removed some returns on ndb internal error codes, return ndb cause in warnings
  - moved all errorcode mapping mysqld-ndb to ndberror.c
  - ndb util thread to discover all ndb tables at startup
  - ndb util thread to wait for mysqld startup
2005-11-06 00:20:37 +01:00
tomas@poseidon.ndb.mysql.com[tomas]
4caff6ebf9 ndb -
update test result for conflicting error codes
2005-11-05 22:57:09 +01:00
tulin@dl145b.mysql.com
97c1f885ed ndb_partition_error.result:
corrected error code
2005-07-22 23:15:47 +02:00
pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se
7cd1601b6e Fixed error test case 2005-07-22 17:14:32 -04:00
pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se
2061b38e64 Bug #12114 patch 2005-07-22 16:39:05 -04:00