~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/schema_reader.cc

  • 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:
13
13
  cout << "CREATE SCHEMA `" << schema->name() << "` ";
14
14
  if (schema->has_collation())
15
15
    cout << "COLLATE `" << schema->collation() << "` ";
16
 
  if (schema->has_characterset())
17
 
    cout << "CHARACTER SET `" << schema->characterset() <<"` ";
18
16
  cout << ";" << endl;
19
17
}
20
18