~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/catalog.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:09:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707130902-lbhjmqfb7kq64s9p
Refactor tablename_to_filename()

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
void Catalog::init()
57
57
58
58
  assert(not _name.empty());
59
 
  path.append("../");
60
 
  if (util::tablename_to_filename(_name, path))
61
 
    errmsg_printf(error::ERROR, _("Catalog name cannot be encoded and fit within filesystem name length restrictions."));
 
59
  path += "../";
 
60
  path += util::tablename_to_filename(_name);
62
61
  assert(path.length()); // TODO throw exception, this is a possibility
63
62
  hash_value= util::insensitive_hash()(path);
64
63
}