~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_clear.cc

  • Committer: Brian Aker
  • Date: 2010-08-11 21:21:09 UTC
  • mfrom: (1697.2.5 staging)
  • Revision ID: brian@gaz-20100811212109-nsfakn1qtsvsgiax
Update heap (mostly C++).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
void heap_clear(HP_INFO *info)
29
29
{
30
 
  hp_clear(info->s);
 
30
  hp_clear(info->getShare());
31
31
}
32
32
 
33
33
void hp_clear(HP_SHARE *info)
96
96
 
97
97
int heap_disable_indexes(HP_INFO *info)
98
98
{
99
 
  HP_SHARE *share= info->s;
 
99
  HP_SHARE *share= info->getShare();
100
100
 
101
101
  if (share->keys)
102
102
  {
130
130
int heap_enable_indexes(HP_INFO *info)
131
131
{
132
132
  int error= 0;
133
 
  HP_SHARE *share= info->s;
 
133
  HP_SHARE *share= info->getShare();
134
134
 
135
135
  if (share->recordspace.total_data_length || share->index_length)
136
136
    error= HA_ERR_CRASHED;
162
162
 
163
163
int heap_indexes_are_disabled(HP_INFO *info)
164
164
{
165
 
  HP_SHARE *share= info->s;
 
165
  HP_SHARE *share= info->getShare();
166
166
 
167
167
  return (! share->keys && share->currently_disabled_keys);
168
168
}