~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_panic.cc

Merge Stewart.

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
#include "heap_priv.h"
17
17
 
23
23
 
24
24
int hp_panic(enum ha_panic_function flag)
25
25
{
26
 
  THR_LOCK_heap.lock();
 
26
  pthread_mutex_lock(&THR_LOCK_heap);
27
27
  list<HP_INFO *>::iterator info_it= heap_open_list.begin();
28
28
  while (info_it != heap_open_list.end())
29
29
  {
53
53
    }
54
54
    ++share_it;
55
55
  }
56
 
  THR_LOCK_heap.unlock();
 
56
  pthread_mutex_unlock(&THR_LOCK_heap);
57
57
  return(0);
58
58
} /* hp_panic */