~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/row/row0purge.cc

  • Committer: Stewart Smith
  • Date: 2011-02-24 07:46:16 UTC
  • mto: (2200.1.2 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2201.
  • Revision ID: stewart@flamingspork.com-20110224074616-l2rmp406vf78x71q
add ER_NO_LOCK_HELD error code, and expect it in case of UNLOCK TABLES without any locks held.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
        ut_ad(parent && heap);
80
80
 
81
 
        node = mem_heap_alloc(heap, sizeof(purge_node_t));
 
81
        node = static_cast<purge_node_t *>(mem_heap_alloc(heap, sizeof(purge_node_t)));
82
82
 
83
83
        node->common.type = QUE_NODE_PURGE;
84
84
        node->common.parent = parent;
380
380
        pcur.btr_cur.purge_node = node;
381
381
        /* Set the query thread, so that ibuf_insert_low() will be
382
382
        able to invoke thd_get_trx(). */
383
 
        pcur.btr_cur.thr = que_node_get_parent(node);
 
383
        pcur.btr_cur.thr = static_cast<que_thr_t *>(que_node_get_parent(node));
384
384
 
385
385
        search_result = row_search_index_entry(
386
386
                index, entry, BTR_MODIFY_LEAF | BTR_DELETE, &pcur, &mtr);
802
802
 
803
803
        ut_ad(thr);
804
804
 
805
 
        node = thr->run_node;
 
805
        node = static_cast<purge_node_t *>(thr->run_node);
806
806
 
807
807
        ut_ad(que_node_get_type(node) == QUE_NODE_PURGE);
808
808