~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.cc

  • Committer: Brian Aker
  • Date: 2009-11-26 03:10:24 UTC
  • mfrom: (1222.1.14 staging)
  • mto: This revision was merged to the branch mainline in revision 1227.
  • Revision ID: brian@gaz-20091126031024-2t9yhghfq2m6tv4u
Small cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3831
3831
        sql_command = session_sql_command(user_session);
3832
3832
 
3833
3833
        if ((sql_command == SQLCOM_ALTER_TABLE
3834
 
             || sql_command == SQLCOM_OPTIMIZE
3835
3834
             || sql_command == SQLCOM_CREATE_INDEX
3836
3835
             || sql_command == SQLCOM_DROP_INDEX)
3837
3836
            && num_write_row >= 10000) {
6674
6673
        return(0);
6675
6674
}
6676
6675
 
6677
 
/**********************************************************************//**
6678
 
This is mapped to "ALTER TABLE tablename ENGINE=InnoDB", which rebuilds
6679
 
the table in MySQL. */
6680
 
UNIV_INTERN
6681
 
int
6682
 
ha_innobase::optimize(
6683
 
/*==================*/
6684
 
        Session*)       /*!< in: connection thread handle */
6685
 
{
6686
 
        return(HA_ADMIN_TRY_ALTER);
6687
 
}
6688
 
 
6689
6676
/*******************************************************************//**
6690
6677
Tries to check that an InnoDB table is not corrupted. If corruption is
6691
6678
noticed, prints to stderr information about it. In case of corruption
7817
7804
                     && lock_type <= TL_WRITE)
7818
7805
                    && !session_tablespace_op(session)
7819
7806
                    && sql_command != SQLCOM_TRUNCATE
7820
 
                    && sql_command != SQLCOM_OPTIMIZE
7821
7807
                    && sql_command != SQLCOM_CREATE_TABLE) {
7822
7808
 
7823
7809
                        lock_type = TL_WRITE_ALLOW_WRITE;