|
bk commit into 4.0 tree (1.1470): msg#00344db.mysql.devel
Below is the list of changes that have just been committed into a local 4.0 repository of heikki. When heikki does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://www.mysql.com/doc/I/n/Installing_source_tree.html ChangeSet 1.1470 03/04/24 15:34:43 heikki@xxxxxxxxxxxxxxx +2 -0 ha_innodb.h, ha_innodb.cc: Make ANALYZE TABLE to update index cardinality and other statistics also for an InnoDB table; note that the estimates are based on 10 random dives, not on an exhaustive read of the table sql/ha_innodb.h 1.54 03/04/24 15:34:32 heikki@xxxxxxxxxxxxxxx +1 -0 Make ANALYZE TABLE to update index cardinality and other statistics also for an InnoDB table; note that the estimates are based on 10 random dives, not on an exhaustive read of the table sql/ha_innodb.cc 1.168 03/04/24 15:34:29 heikki@xxxxxxxxxxxxxxx +17 -0 Make ANALYZE TABLE to update index cardinality and other statistics also for an InnoDB table; note that the estimates are based on 10 random dives, not on an exhaustive read of the table # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: heikki # Host: hundin.mysql.fi # Root: /home/heikki/mysql-4.0 --- 1.167/sql/ha_innodb.cc Thu Apr 24 00:09:42 2003 +++ 1.168/sql/ha_innodb.cc Thu Apr 24 15:34:29 2003 @@ -3756,6 +3756,23 @@ DBUG_VOID_RETURN; } +/************************************************************************** +Updates index cardinalities of the table, based on 10 random dives into +each index tree. This does NOT calculate exact statistics of the table. */ + +int +ha_innobase::analyze( +/*=================*/ + /* out: returns always 0 (success) */ + THD* thd, /* in: connection thread handle */ + HA_CHECK_OPT* check_opt) /* in: currently ignored */ +{ + /* Simply call ::info() with all the flags */ + info(HA_STATUS_TIME | HA_STATUS_CONST | HA_STATUS_VARIABLE); + + return(0); +} + /*********************************************************************** Tries to check that an InnoDB table is not corrupted. If corruption is noticed, prints to stderr information about it. In case of corruption --- 1.53/sql/ha_innodb.h Thu Apr 24 00:09:42 2003 +++ 1.54/sql/ha_innodb.h Thu Apr 24 15:34:32 2003 @@ -152,6 +152,7 @@ void position(const byte *record); void info(uint); + int analyze(THD* thd,HA_CHECK_OPT* check_opt); int extra(enum ha_extra_function operation); int reset(void); int external_lock(THD *thd, int lock_type); -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=gcdmd-internals@xxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | bk commit - mysqldoc tree (1.446): 00344, Sinisa |
|---|---|
| Next by Date: | bk commit - mysqldoc tree (1.447): 00344, paul |
| Previous by Thread: | bk commit - mysqldoc tree (1.446)i: 00344, Sinisa |
| Next by Thread: | bk commit - mysqldoc tree (1.447): 00344, paul |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |