~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_data.cc

  • Committer: Andrew Hutchings
  • Date: 2010-09-23 21:09:07 UTC
  • mto: (1792.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1793.
  • Revision ID: andrew@linuxjedi.co.uk-20100923210907-uhbvkq9fickl4j11
Fix ignore tables

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <string>
24
24
#include <iostream>
25
25
#include <boost/regex.hpp>
 
26
#include <boost/unordered_set.hpp>
26
27
 
27
28
extern bool opt_no_create_info;
28
29
extern bool opt_no_data;
36
37
extern bool opt_alldbs; 
37
38
extern uint32_t show_progress_size;
38
39
 
 
40
extern boost::unordered_set<std::string> ignore_table;
 
41
 
39
42
enum destinations {
40
43
  DESTINATION_DB,
41
44
  DESTINATION_FILES,
44
47
 
45
48
extern int opt_destination;
46
49
 
 
50
/* returns true on keep, false on ignore */
 
51
bool DrizzleDumpDatabase::ignoreTable(std::string tableName)
 
52
{
 
53
  std::string dbTable(databaseName);
 
54
  dbTable.append(".");
 
55
  dbTable.append(tableName);
 
56
 
 
57
  boost::unordered_set<std::string>::iterator iter= ignore_table.find(dbTable);
 
58
  return (iter == ignore_table.end());
 
59
}
 
60
 
47
61
std::ostream& operator <<(std::ostream &os, const DrizzleDumpIndex &obj)
48
62
{
49
63
  if (obj.isPrimary)