~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_open.cc

  • Committer: Brian Aker
  • Date: 2010-08-12 17:21:13 UTC
  • mfrom: (1689.5.5 remove_pthread_calls)
  • Revision ID: brian@tangent.org-20100812172113-i0ox868kcbzjim2h
Merge in removal of pthread dead wrappers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* open a heap-database */
17
17
 
34
34
  HP_INFO *info= new HP_INFO;
35
35
 
36
36
  share->open_count++;
 
37
  info->lock.init(&share->lock);
37
38
  info->setShare(share);
38
 
  info->lastkey.resize(share->max_key_length);
 
39
  info->lastkey= new unsigned char[share->max_key_length];
 
40
  info->recbuf= new unsigned char[share->max_key_length];
39
41
  info->mode= mode;
40
42
  info->current_record= UINT32_MAX;             /* No current record */
41
43
  info->lastinx= info->errkey= -1;
97
99
  list<HP_SHARE *>::iterator it= heap_share_list.begin();
98
100
  while (it != heap_share_list.end())
99
101
  {
100
 
    if (not (*it)->name.compare(name))
 
102
    if (!strcmp(name, (*it)->name))
101
103
    {
102
104
      return (*it);
103
105
    }