~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/unused.cc

  • Committer: Brian Aker
  • Date: 2010-10-25 19:05:24 UTC
  • mto: (1887.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1888.
  • Revision ID: brian@tangent.org-20101025190524-mqi7qr9d90itf3hg
Move unused under table

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "drizzled/sql_base.h"
30
30
#include "drizzled/set_var.h"
31
31
 
32
 
#include "drizzled/unused_tables.h"
 
32
#include "drizzled/table/unused.h"
33
33
 
34
34
namespace drizzled
35
35
{
36
36
 
37
37
namespace table
38
38
{
39
 
class Concurrent;
40
 
}
41
39
 
42
40
UnusedTables &getUnused(void)
43
41
{
59
57
    remove_table(getTable());
60
58
}
61
59
 
62
 
void UnusedTables::link(table::Concurrent *table)
 
60
void UnusedTables::link(Concurrent *table)
63
61
{
64
62
  if (getTable())
65
63
  {
77
75
}
78
76
 
79
77
 
80
 
void UnusedTables::unlink(table::Concurrent *table)
 
78
void UnusedTables::unlink(Concurrent *table)
81
79
{
82
80
  table->unlink();
83
81
 
92
90
 
93
91
/* move table first in unused links */
94
92
 
95
 
void UnusedTables::relink(table::Concurrent *table)
 
93
void UnusedTables::relink(Concurrent *table)
96
94
{
97
95
  if (table != getTable())
98
96
  {
111
109
  while (getTable())
112
110
    remove_table(getTable());
113
111
}
 
112
 
 
113
} /* namespace table */
114
114
} /* namespace drizzled */