~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.h

  • Committer: Stewart Smith
  • Date: 2009-02-02 04:55:56 UTC
  • mto: (859.1.1 nofrm)
  • mto: This revision was merged to the branch mainline in revision 822.
  • Revision ID: stewart@flamingspork.com-20090202045556-mwmdwi60el6a371r
re-introduce db.opt, but with parsing it from disk instead of in process cache with mutex.

Write db.opt safely (temp file, rename).

LOCK_drizzle_create_db can likely easily go now.

schema.proto: remove charset as it is standard, we only care about collation.

We don't change the epic fail that is the lack of error checking in show.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
 
36
36
bool check_db_dir_existence(const char *db_name);
 
37
int load_db_opt_by_name(Session *session, const char *db_name,
 
38
                        HA_CREATE_INFO *db_create_info);
37
39
const CHARSET_INFO *get_default_db_collation(Session *session, const char *db_name);
38
40
 
39
41
extern int creating_database; // How many database locks are made