~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_placeholder.h

[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
namespace drizzled
27
27
{
28
28
 
29
 
namespace table
30
 
{
31
 
 
32
 
class Placeholder : public table::Concurrent
 
29
class TablePlaceholder : public Table
33
30
{
34
31
  TableShare private_share;
35
32
 
36
33
public:
37
 
  Placeholder(Session *session, TableIdentifier &identifier) :
38
 
    table::Concurrent(),
 
34
  TablePlaceholder(Session *session, TableIdentifier &identifier) :
 
35
    Table(),
39
36
    private_share(identifier, identifier.getKey())
40
37
  {
 
38
    is_placeholder_created= true;
41
39
    setShare(&private_share);
42
40
    in_use= session;
43
41
 
44
42
    locked_by_name= true;
45
43
  }
46
 
 
47
 
  bool isPlaceHolder(void) const
48
 
  {
49
 
    return true;
50
 
  }
51
 
 
52
 
  void release(void)
53
 
  {
54
 
    TableShare::release(getMutableShare());
55
 
  }
56
44
};
57
45
 
58
 
} /* namespace table */
59
46
} /* namespace drizzled */
60
47
 
61
48
#endif /* DRIZZLED_TABLE_PLACEHOLDER_H */