~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blackhole/ha_blackhole.cc

  • Committer: Brian Aker
  • Date: 2010-08-08 17:17:30 UTC
  • mfrom: (1689.2.15 rollup)
  • Revision ID: brian@gaz-20100808171730-5mqjs078qknr2eag
Merge, includes encapsulation of LOCK_xid_cache, and some of the thr derived
locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
  if (!(share= get_share(name)))
232
232
    return(HA_ERR_OUT_OF_MEM);
233
233
 
234
 
  thr_lock_data_init(&share->lock, &lock);
235
 
  return(0);
 
234
  lock.init(&share->lock);
 
235
  return 0;
236
236
}
237
237
 
238
238
int ha_blackhole::close(void)
475
475
 
476
476
BlackholeShare::~BlackholeShare()
477
477
{
478
 
  thr_lock_delete(&lock);
 
478
  lock.deinit();
479
479
}
480
480
 
481
481