~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_table.cc

  • Committer: Brian Aker
  • Date: 2008-07-04 22:46:21 UTC
  • Revision ID: brian@tangent.org-20080704224621-24b2ykda0vgp7xdi
Removed preload from parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3978
3978
}
3979
3979
 
3980
3980
 
3981
 
/*
3982
 
  Preload specified indexes for a table into key cache
3983
 
 
3984
 
  SYNOPSIS
3985
 
    mysql_preload_keys()
3986
 
    thd         Thread object
3987
 
    tables      Table list (one table only)
3988
 
 
3989
 
  RETURN VALUES
3990
 
    false ok
3991
 
    true  error
3992
 
*/
3993
 
 
3994
 
bool mysql_preload_keys(THD* thd, TABLE_LIST* tables)
3995
 
{
3996
 
  DBUG_ENTER("mysql_preload_keys");
3997
 
  /*
3998
 
    We cannot allow concurrent inserts. The storage engine reads
3999
 
    directly from the index file, bypassing the cache. It could read
4000
 
    outdated information if parallel inserts into cache blocks happen.
4001
 
  */
4002
 
   DBUG_RETURN(mysql_admin_table(thd, tables, 0,
4003
 
                                "preload_keys", TL_READ_NO_INSERT, 0, 0, 0, 0,
4004
 
                                &handler::preload_keys));
4005
 
}
4006
 
 
4007
 
 
4008
3981
 
4009
3982
/**
4010
3983
  @brief          Create frm file based on I_S table