~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.cc

  • Committer: Lee Bieber
  • Date: 2011-02-24 05:45:16 UTC
  • mfrom: (2192.4.2 find_ptr)
  • mto: This revision was merged to the branch mainline in revision 2198.
  • Revision ID: kalebral@gmail.com-20110224054516-knbyh4azb1i2ye79
Merge Olaf - Introduce find_ptr, a wrapper around map::find that eliminates "!= map.end()" and "->second"

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
extern int opt_destination;
58
58
 
59
 
/* returns true on keep, false on ignore */
 
59
// returns true on keep, false on ignore Olaf: sounds backwards/wrong, shouldn't it be the other way around?
60
60
bool DrizzleDumpDatabase::ignoreTable(std::string tableName)
61
61
{
62
 
  std::string dbTable(databaseName);
63
 
  dbTable.append(".");
64
 
  dbTable.append(tableName);
65
 
 
66
 
  boost::unordered_set<std::string>::iterator iter= ignore_table.find(dbTable);
67
 
  return (iter == ignore_table.end());
 
62
  return ignore_table.find(databaseName + "." + tableName) == ignore_table.end();
68
63
}
69
64
 
70
65
void DrizzleDumpDatabase::cleanTableName(std::string &tableName)