Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3c0a37fd
Commit
3c0a37fd
authored
Jan 14, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call always ha_index_init(), not index_init(), to ensure that active_index is set correctly.
Fixes failures in merge.test
parent
d0e8dbc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/handler.cc
sql/handler.cc
+4
-4
No files found.
sql/handler.cc
View file @
3c0a37fd
...
@@ -2542,7 +2542,7 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment,
...
@@ -2542,7 +2542,7 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment,
table
->
mark_columns_used_by_index_no_reset
(
table
->
s
->
next_number_index
,
table
->
mark_columns_used_by_index_no_reset
(
table
->
s
->
next_number_index
,
table
->
read_set
);
table
->
read_set
);
column_bitmaps_signal
();
column_bitmaps_signal
();
index_init
(
table
->
s
->
next_number_index
,
1
);
ha_
index_init
(
table
->
s
->
next_number_index
,
1
);
if
(
table
->
s
->
next_number_keypart
==
0
)
if
(
table
->
s
->
next_number_keypart
==
0
)
{
// Autoincrement at key-start
{
// Autoincrement at key-start
error
=
index_last
(
table
->
record
[
1
]);
error
=
index_last
(
table
->
record
[
1
]);
...
@@ -2576,7 +2576,7 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment,
...
@@ -2576,7 +2576,7 @@ void handler::get_auto_increment(ulonglong offset, ulonglong increment,
else
else
nr
=
((
ulonglong
)
table
->
next_number_field
->
nr
=
((
ulonglong
)
table
->
next_number_field
->
val_int_offset
(
table
->
s
->
rec_buff_length
)
+
1
);
val_int_offset
(
table
->
s
->
rec_buff_length
)
+
1
);
index_end
();
ha_
index_end
();
(
void
)
extra
(
HA_EXTRA_NO_KEYREAD
);
(
void
)
extra
(
HA_EXTRA_NO_KEYREAD
);
*
first_value
=
nr
;
*
first_value
=
nr
;
}
}
...
@@ -4361,11 +4361,11 @@ int handler::index_read_idx_map(uchar * buf, uint index, const uchar * key,
...
@@ -4361,11 +4361,11 @@ int handler::index_read_idx_map(uchar * buf, uint index, const uchar * key,
int
error
,
error1
;
int
error
,
error1
;
LINT_INIT
(
error1
);
LINT_INIT
(
error1
);
error
=
index_init
(
index
,
0
);
error
=
ha_
index_init
(
index
,
0
);
if
(
!
error
)
if
(
!
error
)
{
{
error
=
index_read_map
(
buf
,
key
,
keypart_map
,
find_flag
);
error
=
index_read_map
(
buf
,
key
,
keypart_map
,
find_flag
);
error1
=
index_end
();
error1
=
ha_
index_end
();
}
}
return
error
?
error
:
error1
;
return
error
?
error
:
error1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment