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
48ecd65c
Commit
48ecd65c
authored
Sep 10, 2009
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Local merge.
parents
eb7a3fc9
a7de2057
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
mysql-test/r/archive.result
mysql-test/r/archive.result
+11
-0
mysql-test/t/archive.test
mysql-test/t/archive.test
+13
-0
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+1
-1
No files found.
mysql-test/r/archive.result
View file @
48ecd65c
...
...
@@ -12706,3 +12706,14 @@ INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1' AND TABLE_SCHEMA='test';
DATA_LENGTH AVG_ROW_LENGTH
8700 4350
DROP TABLE t1;
SET @save_join_buffer_size= @@join_buffer_size;
SET @@join_buffer_size= 8228;
CREATE TABLE t1(a CHAR(255)) ENGINE=archive;
INSERT INTO t1 VALUES('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
SELECT COUNT(t1.a) FROM t1, t1 a, t1 b, t1 c, t1 d, t1 e;
COUNT(t1.a)
729
DROP TABLE t1;
SET @@join_buffer_size= @save_join_buffer_size;
mysql-test/t/archive.test
View file @
48ecd65c
...
...
@@ -1610,3 +1610,16 @@ INSERT INTO t1 VALUES(1, 'sampleblob1'),(2, 'sampleblob2');
SELECT
DATA_LENGTH
,
AVG_ROW_LENGTH
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
AND
TABLE_SCHEMA
=
'test'
;
DROP
TABLE
t1
;
#
# BUG#46961 - archive engine loses rows during self joining select!
#
SET
@
save_join_buffer_size
=
@@
join_buffer_size
;
SET
@@
join_buffer_size
=
8228
;
CREATE
TABLE
t1
(
a
CHAR
(
255
))
ENGINE
=
archive
;
INSERT
INTO
t1
VALUES
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
),
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
),
(
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
);
SELECT
COUNT
(
t1
.
a
)
FROM
t1
,
t1
a
,
t1
b
,
t1
c
,
t1
d
,
t1
e
;
DROP
TABLE
t1
;
SET
@@
join_buffer_size
=
@
save_join_buffer_size
;
storage/archive/ha_archive.cc
View file @
48ecd65c
...
...
@@ -993,6 +993,7 @@ int ha_archive::rnd_init(bool scan)
/* We rewind the file so that we can read from the beginning if scan */
if
(
scan
)
{
scan_rows
=
stats
.
records
;
DBUG_PRINT
(
"info"
,
(
"archive will retrieve %llu rows"
,
(
unsigned
long
long
)
scan_rows
));
...
...
@@ -1461,7 +1462,6 @@ int ha_archive::info(uint flag)
stats
.
records
=
share
->
rows_recorded
;
pthread_mutex_unlock
(
&
share
->
mutex
);
scan_rows
=
stats
.
records
;
stats
.
deleted
=
0
;
DBUG_PRINT
(
"ha_archive"
,
(
"Stats rows is %d
\n
"
,
(
int
)
stats
.
records
));
...
...
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