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
a580f985
Commit
a580f985
authored
Dec 23, 2005
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into zim.(none):/home/brian/mysql/archive-5.1
parents
01d04541
56fd453c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
18 deletions
+17
-18
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+2
-2
sql/ha_archive.cc
sql/ha_archive.cc
+5
-6
sql/ha_archive.h
sql/ha_archive.h
+1
-1
storage/archive/azio.c
storage/archive/azio.c
+3
-3
storage/archive/azlib.h
storage/archive/azlib.h
+6
-6
No files found.
mysql-test/r/information_schema.result
View file @
a580f985
...
...
@@ -725,7 +725,7 @@ CREATE TABLE t_crashme ( f1 BIGINT);
CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
count(*)
10
3
10
4
drop view a2, a1;
drop table t_crashme;
select table_schema,table_name, column_name from
...
...
@@ -796,7 +796,7 @@ delete from mysql.db where user='mysqltest_4';
flush privileges;
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
table_schema count(*)
information_schema 1
7
information_schema 1
8
mysql 18
create table t1 (i int, j int);
create trigger trg1 before insert on t1 for each row
...
...
sql/ha_archive.cc
View file @
a580f985
...
...
@@ -247,8 +247,7 @@ ha_archive::ha_archive(TABLE_SHARE *table_arg)
buffer
.
set
((
char
*
)
byte_buffer
,
IO_SIZE
,
system_charset_info
);
/* The size of the offset value we will use for position() */
ref_length
=
2
<<
((
zlibCompileFlags
()
>>
6
)
&
3
);
DBUG_ASSERT
(
ref_length
<=
sizeof
(
z_off_t
));
ref_length
=
sizeof
(
my_off_t
);
}
/*
...
...
@@ -612,7 +611,7 @@ error:
*/
int
ha_archive
::
real_write_row
(
byte
*
buf
,
azio_stream
*
writer
)
{
z
_off_t
written
;
my
_off_t
written
;
uint
*
ptr
,
*
end
;
DBUG_ENTER
(
"ha_archive::real_write_row"
);
...
...
@@ -621,7 +620,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer)
if
(
!
delayed_insert
||
!
bulk_insert
)
share
->
dirty
=
TRUE
;
if
(
written
!=
(
z
_off_t
)
table
->
s
->
reclength
)
if
(
written
!=
(
my
_off_t
)
table
->
s
->
reclength
)
DBUG_RETURN
(
errno
?
errno
:
-
1
);
/*
We should probably mark the table as damagaged if the record is written
...
...
@@ -638,7 +637,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer)
{
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
get_ptr
(
&
data_ptr
);
written
=
azwrite
(
writer
,
data_ptr
,
(
unsigned
)
size
);
if
(
written
!=
(
z
_off_t
)
size
)
if
(
written
!=
(
my
_off_t
)
size
)
DBUG_RETURN
(
errno
?
errno
:
-
1
);
}
}
...
...
@@ -830,7 +829,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
DBUG_ENTER
(
"ha_archive::rnd_pos"
);
statistic_increment
(
table
->
in_use
->
status_var
.
ha_read_rnd_next_count
,
&
LOCK_status
);
current_position
=
(
z
_off_t
)
my_get_ptr
(
pos
,
ref_length
);
current_position
=
(
my
_off_t
)
my_get_ptr
(
pos
,
ref_length
);
(
void
)
azseek
(
&
archive
,
current_position
,
SEEK_SET
);
DBUG_RETURN
(
get_row
(
&
archive
,
buf
));
...
...
sql/ha_archive.h
View file @
a580f985
...
...
@@ -51,7 +51,7 @@ class ha_archive: public handler
THR_LOCK_DATA
lock
;
/* MySQL lock */
ARCHIVE_SHARE
*
share
;
/* Shared lock info */
azio_stream
archive
;
/* Archive file we are working with */
z
_off_t
current_position
;
/* The position of the row we just read */
my
_off_t
current_position
;
/* The position of the row we just read */
byte
byte_buffer
[
IO_SIZE
];
/* Initial buffer for our string */
String
buffer
;
/* Buffer used for blob storage */
ha_rows
scan_rows
;
/* Number of rows left in scan */
...
...
storage/archive/azio.c
View file @
a580f985
...
...
@@ -506,9 +506,9 @@ int azrewind (s)
SEEK_END is not implemented, returns error.
In this version of the library, azseek can be extremely slow.
*/
z
_off_t
azseek
(
s
,
offset
,
whence
)
my
_off_t
azseek
(
s
,
offset
,
whence
)
azio_stream
*
s
;
z
_off_t
offset
;
my
_off_t
offset
;
int
whence
;
{
...
...
@@ -589,7 +589,7 @@ z_off_t azseek (s, offset, whence)
given compressed file. This position represents a number of bytes in the
uncompressed data stream.
*/
z
_off_t
ZEXPORT
aztell
(
file
)
my
_off_t
ZEXPORT
aztell
(
file
)
azio_stream
*
file
;
{
return
azseek
(
file
,
0L
,
SEEK_CUR
);
...
...
storage/archive/azlib.h
View file @
a580f985
...
...
@@ -166,9 +166,9 @@ typedef struct azio_stream {
char
*
msg
;
/* error message */
int
transparent
;
/* 1 if input file is not a .gz file */
char
mode
;
/* 'w' or 'r' */
z
_off_t
start
;
/* start of compressed data in file (header skipped) */
z
_off_t
in
;
/* bytes into deflate or inflate */
z
_off_t
out
;
/* bytes out of deflate or inflate */
my
_off_t
start
;
/* start of compressed data in file (header skipped) */
my
_off_t
in
;
/* bytes into deflate or inflate */
my
_off_t
out
;
/* bytes out of deflate or inflate */
int
back
;
/* one character push-back */
int
last
;
/* true if push-back is last character */
}
azio_stream
;
...
...
@@ -232,8 +232,8 @@ extern int azflush(azio_stream *file, int flush);
degrade compression.
*/
extern
z
_off_t
azseek
(
azio_stream
*
file
,
z
_off_t
offset
,
int
whence
);
extern
my
_off_t
azseek
(
azio_stream
*
file
,
my
_off_t
offset
,
int
whence
);
/*
Sets the starting position for the next gzread or gzwrite on the
given compressed file. The offset represents a number of bytes in the
...
...
@@ -257,7 +257,7 @@ extern int azrewind(azio_stream *file);
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
*/
extern
z
_off_t
aztell
(
azio_stream
*
file
);
extern
my
_off_t
aztell
(
azio_stream
*
file
);
/*
Returns the starting position for the next gzread or gzwrite on the
given compressed file. This position represents a number of bytes in the
...
...
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