~drizzle-trunk/drizzle/jenkins-Drizzle-Builder-187

« back to all changes in this revision

Viewing changes to drizzled/locking/global.cc

  • Committer: Stewart Smith
  • Date: 2012-07-11 14:06:00 UTC
  • mto: This revision was merged to the branch mainline in revision 2574.
  • Revision ID: stewart@flamingspork.com-20120711140600-oxrs1cjabjuqpd05
force a identifier::Schema to be constructed with a identifier::Catalog. This is close to the final 'big' part for CATALOG support. We also have to modify all around the server that creates identifier::Schema so it does so properly. Since a single Session cannot span schemas, we get off a wee bit easy :) The big limitation in this patch is that INFORMATION_SCHEMA and DATA_DICTIONARY only appear in the LOCAL catalog (and this really needs to be fixed before CATALOGs other than LOCAL are supported).

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
#include <drizzled/util/test.h>
94
94
#include <drizzled/open_tables_state.h>
95
95
#include <drizzled/table/cache.h>
 
96
#include <drizzled/catalog/instance.h>
96
97
 
97
98
#include <set>
98
99
#include <vector>
618
619
 
619
620
int Session::lock_table_name(TableList *table_list)
620
621
{
621
 
  identifier::Table identifier(table_list->getSchemaName(), table_list->getTableName());
 
622
  identifier::Table identifier(catalog().identifier(),
 
623
                               table_list->getSchemaName(),
 
624
                               table_list->getTableName());
622
625
  {
623
626
    /* Only insert the table if we haven't insert it already */
624
627
    table::CacheRange ppp= table::getCache().equal_range(identifier.getKey());