~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blitzdb/blitzlock.cc

  • Committer: lbieber
  • Date: 2010-07-27 13:22:28 UTC
  • mfrom: (1667.2.1 staging)
  • Revision ID: lbieber@orisndriz03-20100727132228-kmxj32ubano8bdmz
Merge Toru's latest changes for BlitzDB

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
  pthread_mutex_unlock(&mutex);
128
128
}
129
129
 
130
 
int ha_blitz::critical_section_enter() {
 
130
int ha_blitz::blitz_optimal_lock() {
131
131
  if (sql_command_type == SQLCOM_ALTER_TABLE ||
132
132
      sql_command_type == SQLCOM_UPDATE ||
133
133
      sql_command_type == SQLCOM_DELETE ||
141
141
  return 0;
142
142
}
143
143
 
144
 
int ha_blitz::critical_section_exit() {
 
144
int ha_blitz::blitz_optimal_unlock() {
145
145
  if (sql_command_type == SQLCOM_ALTER_TABLE ||
146
146
      sql_command_type == SQLCOM_UPDATE ||
147
147
      sql_command_type == SQLCOM_DELETE ||