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
44db9c41
Commit
44db9c41
authored
Nov 27, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fix in ha_partition::rnd_pos(), status wasn't updated
parent
e29c74c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
mysql-test/r/partition_explicit_prune.result
mysql-test/r/partition_explicit_prune.result
+8
-1
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
No files found.
mysql-test/r/partition_explicit_prune.result
View file @
44db9c41
...
@@ -805,6 +805,7 @@ WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
...
@@ -805,6 +805,7 @@ WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
VARIABLE_NAME VARIABLE_VALUE
VARIABLE_NAME VARIABLE_VALUE
HANDLER_COMMIT 1
HANDLER_COMMIT 1
HANDLER_READ_KEY 1
HANDLER_READ_KEY 1
HANDLER_READ_RND 1
HANDLER_TMP_WRITE 22
HANDLER_TMP_WRITE 22
HANDLER_UPDATE 2
HANDLER_UPDATE 2
# 1 commit
# 1 commit
...
@@ -837,6 +838,7 @@ SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
...
@@ -837,6 +838,7 @@ SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
VARIABLE_NAME VARIABLE_VALUE
VARIABLE_NAME VARIABLE_VALUE
HANDLER_READ_KEY 1
HANDLER_READ_KEY 1
HANDLER_READ_RND 1
HANDLER_ROLLBACK 1
HANDLER_ROLLBACK 1
HANDLER_TMP_WRITE 22
HANDLER_TMP_WRITE 22
HANDLER_UPDATE 1
HANDLER_UPDATE 1
...
@@ -852,6 +854,7 @@ SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
...
@@ -852,6 +854,7 @@ SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
VARIABLE_NAME VARIABLE_VALUE
VARIABLE_NAME VARIABLE_VALUE
HANDLER_READ_KEY 1
HANDLER_READ_KEY 1
HANDLER_READ_RND 1
HANDLER_ROLLBACK 1
HANDLER_ROLLBACK 1
HANDLER_TMP_WRITE 22
HANDLER_TMP_WRITE 22
HANDLER_UPDATE 1
HANDLER_UPDATE 1
...
@@ -870,6 +873,7 @@ VARIABLE_NAME VARIABLE_VALUE
...
@@ -870,6 +873,7 @@ VARIABLE_NAME VARIABLE_VALUE
HANDLER_COMMIT 1
HANDLER_COMMIT 1
HANDLER_DELETE 1
HANDLER_DELETE 1
HANDLER_READ_KEY 1
HANDLER_READ_KEY 1
HANDLER_READ_RND 1
HANDLER_TMP_WRITE 22
HANDLER_TMP_WRITE 22
HANDLER_UPDATE 1
HANDLER_UPDATE 1
HANDLER_WRITE 1
HANDLER_WRITE 1
...
@@ -922,6 +926,7 @@ WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
...
@@ -922,6 +926,7 @@ WHERE VARIABLE_NAME LIKE 'HANDLER_%' AND VARIABLE_VALUE > 0;
VARIABLE_NAME VARIABLE_VALUE
VARIABLE_NAME VARIABLE_VALUE
HANDLER_COMMIT 2
HANDLER_COMMIT 2
HANDLER_READ_KEY 1
HANDLER_READ_KEY 1
HANDLER_READ_RND 1
HANDLER_READ_RND_NEXT 26
HANDLER_READ_RND_NEXT 26
HANDLER_TMP_WRITE 47
HANDLER_TMP_WRITE 47
HANDLER_UPDATE 2
HANDLER_UPDATE 2
...
@@ -935,6 +940,7 @@ VARIABLE_NAME VARIABLE_VALUE
...
@@ -935,6 +940,7 @@ VARIABLE_NAME VARIABLE_VALUE
HANDLER_COMMIT 3
HANDLER_COMMIT 3
HANDLER_DELETE 1
HANDLER_DELETE 1
HANDLER_READ_KEY 2
HANDLER_READ_KEY 2
HANDLER_READ_RND 2
HANDLER_READ_RND_NEXT 52
HANDLER_READ_RND_NEXT 52
HANDLER_TMP_WRITE 72
HANDLER_TMP_WRITE 72
HANDLER_UPDATE 3
HANDLER_UPDATE 3
...
@@ -950,6 +956,7 @@ VARIABLE_NAME VARIABLE_VALUE
...
@@ -950,6 +956,7 @@ VARIABLE_NAME VARIABLE_VALUE
HANDLER_COMMIT 3
HANDLER_COMMIT 3
HANDLER_DELETE 1
HANDLER_DELETE 1
HANDLER_READ_KEY 2
HANDLER_READ_KEY 2
HANDLER_READ_RND 2
HANDLER_READ_RND_NEXT 78
HANDLER_READ_RND_NEXT 78
HANDLER_TMP_WRITE 97
HANDLER_TMP_WRITE 97
HANDLER_UPDATE 3
HANDLER_UPDATE 3
...
@@ -1222,7 +1229,7 @@ HANDLER_DELETE 6
...
@@ -1222,7 +1229,7 @@ HANDLER_DELETE 6
HANDLER_READ_FIRST 1
HANDLER_READ_FIRST 1
HANDLER_READ_KEY 2
HANDLER_READ_KEY 2
HANDLER_READ_NEXT 2
HANDLER_READ_NEXT 2
HANDLER_READ_RND
2
HANDLER_READ_RND
4
HANDLER_READ_RND_NEXT 16
HANDLER_READ_RND_NEXT 16
HANDLER_TMP_WRITE 22
HANDLER_TMP_WRITE 22
# 4 delete (2 in t2 + 2 in t3)
# 4 delete (2 in t2 + 2 in t3)
...
...
sql/ha_partition.cc
View file @
44db9c41
...
@@ -4916,7 +4916,7 @@ int ha_partition::rnd_pos(uchar * buf, uchar *pos)
...
@@ -4916,7 +4916,7 @@ int ha_partition::rnd_pos(uchar * buf, uchar *pos)
file
=
m_file
[
part_id
];
file
=
m_file
[
part_id
];
DBUG_ASSERT
(
bitmap_is_set
(
&
(
m_part_info
->
read_partitions
),
part_id
));
DBUG_ASSERT
(
bitmap_is_set
(
&
(
m_part_info
->
read_partitions
),
part_id
));
m_last_part
=
part_id
;
m_last_part
=
part_id
;
DBUG_RETURN
(
file
->
rnd_pos
(
buf
,
(
pos
+
PARTITION_BYTES_IN_POS
)));
DBUG_RETURN
(
file
->
ha_
rnd_pos
(
buf
,
(
pos
+
PARTITION_BYTES_IN_POS
)));
}
}
...
...
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