~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/dictionary.cc

  • Committer: Brian Aker
  • Date: 2010-03-01 22:24:10 UTC
  • mto: (1309.2.12 build)
  • mto: This revision was merged to the branch mainline in revision 1317.
  • Revision ID: brian@gaz-20100301222410-w509prhp73pg6z4n
Update the code so use a faster index lookup method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
static ReferentialConstraintsTool *referential_constraints;
30
30
static SchemasTool *schemas;
31
31
static SchemaNames *schema_names;
 
32
static ShowIndexes *show_indexes;
32
33
static TableConstraintsTool *table_constraints;
33
34
static TablesTool *tables;
34
35
static TableNames *local_tables;
44
45
  schemas= new(std::nothrow)SchemasTool;
45
46
  local_tables= new(std::nothrow)TableNames;
46
47
  schema_names= new(std::nothrow)SchemaNames;
 
48
  show_indexes= new(std::nothrow)ShowIndexes;
47
49
  table_constraints= new(std::nothrow)TableConstraintsTool;
48
50
  table_status= new(std::nothrow)TableStatus;
49
51
  tables= new(std::nothrow)TablesTool;
55
57
  registry.add(referential_constraints);
56
58
  registry.add(schema_names);
57
59
  registry.add(schemas);
 
60
  registry.add(show_indexes);
58
61
  registry.add(table_constraints);
59
62
  registry.add(table_status);
60
63
  registry.add(tables);
71
74
  registry.remove(referential_constraints);
72
75
  registry.remove(schema_names);
73
76
  registry.remove(schemas);
 
77
  registry.remove(show_indexes);
74
78
  registry.remove(table_constraints);
75
79
  registry.remove(table_status);
76
80
  registry.remove(tables);
81
85
  delete referential_constraints;
82
86
  delete schema_names;
83
87
  delete schemas;
 
88
  delete show_indexes;
84
89
  delete table_constraints;
85
90
  delete table_status;
86
91
  delete tables;