Merge lp:~brianaker/drizzle/mysql-bug-13358468 into lp:~drizzle-trunk/drizzle/development

Proposed by Brian Aker
Status: Merged
Approved by: Mark Atwood
Approved revision: 2489
Merged at revision: 2489
Proposed branch: lp:~brianaker/drizzle/mysql-bug-13358468
Merge into: lp:~drizzle-trunk/drizzle/development
Diff against target: 74 lines (+2/-40)
3 files modified
plugin/innobase/btr/btr0pcur.cc (+2/-0)
plugin/innobase/include/btr0pcur.h (+0/-8)
plugin/innobase/include/btr0pcur.ic (+0/-32)
To merge this branch: bzr merge lp:~brianaker/drizzle/mysql-bug-13358468
Reviewer Review Type Date Requested Status
Drizzle Merge Team Pending
Review via email: mp+88296@code.launchpad.net

Description of the change

Fix for mysql bug (we may have this outstanding as a bug on us as well).

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugin/innobase/btr/btr0pcur.cc'
2--- plugin/innobase/btr/btr0pcur.cc 2010-12-24 00:04:05 +0000
3+++ plugin/innobase/btr/btr0pcur.cc 2012-01-12 01:29:24 +0000
4@@ -247,6 +247,8 @@
5 cursor->rel_pos == BTR_PCUR_BEFORE_FIRST_IN_TREE,
6 index, latch_mode, btr_pcur_get_btr_cur(cursor), mtr);
7
8+ cursor->latch_mode = latch_mode;
9+ cursor->pos_state = BTR_PCUR_IS_POSITIONED;
10 cursor->block_when_stored = btr_pcur_get_block(cursor);
11
12 return(FALSE);
13
14=== modified file 'plugin/innobase/include/btr0pcur.h'
15--- plugin/innobase/include/btr0pcur.h 2011-03-14 05:40:28 +0000
16+++ plugin/innobase/include/btr0pcur.h 2012-01-12 01:29:24 +0000
17@@ -293,14 +293,6 @@
18 /*========================*/
19 btr_pcur_t* pcur, /*!< in: persistent cursor */
20 mtr_t* mtr); /*!< in: mtr to commit */
21-/**************************************************************//**
22-Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
23-@return TRUE if detached */
24-UNIV_INLINE
25-ibool
26-btr_pcur_is_detached(
27-/*=================*/
28- btr_pcur_t* pcur); /*!< in: persistent cursor */
29 /*********************************************************//**
30 Moves the persistent cursor to the next record in the tree. If no records are
31 left, the cursor stays 'after last in tree'.
32
33=== modified file 'plugin/innobase/include/btr0pcur.ic'
34--- plugin/innobase/include/btr0pcur.ic 2010-12-18 04:43:40 +0000
35+++ plugin/innobase/include/btr0pcur.ic 2012-01-12 01:29:24 +0000
36@@ -417,38 +417,6 @@
37 }
38
39 /**************************************************************//**
40-Sets the pcur latch mode to BTR_NO_LATCHES. */
41-UNIV_INLINE
42-void
43-btr_pcur_detach(
44-/*============*/
45- btr_pcur_t* pcur) /*!< in: persistent cursor */
46-{
47- ut_a(pcur->pos_state == BTR_PCUR_IS_POSITIONED);
48-
49- pcur->latch_mode = BTR_NO_LATCHES;
50-
51- pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
52-}
53-
54-/**************************************************************//**
55-Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
56-@return TRUE if detached */
57-UNIV_INLINE
58-ibool
59-btr_pcur_is_detached(
60-/*=================*/
61- btr_pcur_t* pcur) /*!< in: persistent cursor */
62-{
63- if (pcur->latch_mode == BTR_NO_LATCHES) {
64-
65- return(TRUE);
66- }
67-
68- return(FALSE);
69-}
70-
71-/**************************************************************//**
72 Sets the old_rec_buf field to NULL. */
73 UNIV_INLINE
74 void