~ziminq/drizzle/filesystem-storage-engine

« back to all changes in this revision

Viewing changes to drizzled/generator/table.cc

  • Committer: Brian Aker
  • Date: 2010-07-08 22:17:25 UTC
  • mto: (1548.1.99 build)
  • mto: This revision was merged to the branch mainline in revision 1649.
  • Revision ID: brian@gaz-20100708221725-bq0ry7tyi7b3ahd3
Remove sort() and add in DEBUG mode to randomize the results of generators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  session(arg)
34
34
{
35
35
  plugin::StorageEngine::getTableIdentifiers(session, schema_identifier, table_names);
 
36
#if defined(DEBUG)
 
37
  random_shuffle(table_names.begin(), table_names.end());
 
38
#endif
36
39
  table_iterator= table_names.begin();
37
40
}
38
41