~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/server_includes.h

  • Committer: Monty Taylor
  • Date: 2008-10-29 21:21:57 UTC
  • mto: (520.4.26 devel)
  • mto: This revision was merged to the branch mainline in revision 570.
  • Revision ID: monty@inaugust.com-20081029212157-y3127au8tj1jxfal
Moved a bunch of crap out of common_includes.
Killed innodb_plugin_extras.h.
Made kittens happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
extern LOGGER logger;
693
693
extern TableList general_log, slow_log;
694
694
extern FILE *stderror_file;
695
 
extern pthread_key(MEM_ROOT**,THR_MALLOC);
 
695
extern pthread_key_t THR_MALLOC;
696
696
extern pthread_mutex_t LOCK_mysql_create_db,LOCK_open, LOCK_lock_db,
697
697
       LOCK_thread_count,LOCK_user_locks, LOCK_status,
698
698
       LOCK_error_log, LOCK_uuid_generator,
962
962
  memset(table->null_flags, 255, table->s->null_bytes);
963
963
}
964
964
 
965
 
inline void table_case_convert(char * name, uint32_t length)
966
 
{
967
 
  if (lower_case_table_names)
968
 
    files_charset_info->cset->casedn(files_charset_info,
969
 
                                     name, length, name, length);
970
 
}
971
 
 
972
 
inline const char *table_case_name(HA_CREATE_INFO *info, const char *name)
973
 
{
974
 
  return ((lower_case_table_names == 2 && info->alias) ? info->alias : name);
975
 
}
976
 
 
977
965
inline ulong sql_rnd()
978
966
{
979
967
  ulong tmp= (ulong) (rand() * 0xffffffff); /* make all bits random */