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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
64db2ba4
Commit
64db2ba4
authored
Dec 23, 2005
by
unknown
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
6a6e9a1f
8ff68092
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 @
64db2ba4
...
@@ -725,7 +725,7 @@ CREATE TABLE t_crashme ( f1 BIGINT);
...
@@ -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 a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
count(*)
count(*)
10
3
10
4
drop view a2, a1;
drop view a2, a1;
drop table t_crashme;
drop table t_crashme;
select table_schema,table_name, column_name from
select table_schema,table_name, column_name from
...
@@ -796,7 +796,7 @@ delete from mysql.db where user='mysqltest_4';
...
@@ -796,7 +796,7 @@ delete from mysql.db where user='mysqltest_4';
flush privileges;
flush privileges;
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
table_schema count(*)
table_schema count(*)
information_schema 1
7
information_schema 1
8
mysql 18
mysql 18
create table t1 (i int, j int);
create table t1 (i int, j int);
create trigger trg1 before insert on t1 for each row
create trigger trg1 before insert on t1 for each row
...
...
sql/ha_archive.cc
View file @
64db2ba4
...
@@ -247,8 +247,7 @@ ha_archive::ha_archive(TABLE_SHARE *table_arg)
...
@@ -247,8 +247,7 @@ ha_archive::ha_archive(TABLE_SHARE *table_arg)
buffer
.
set
((
char
*
)
byte_buffer
,
IO_SIZE
,
system_charset_info
);
buffer
.
set
((
char
*
)
byte_buffer
,
IO_SIZE
,
system_charset_info
);
/* The size of the offset value we will use for position() */
/* The size of the offset value we will use for position() */
ref_length
=
2
<<
((
zlibCompileFlags
()
>>
6
)
&
3
);
ref_length
=
sizeof
(
my_off_t
);
DBUG_ASSERT
(
ref_length
<=
sizeof
(
z_off_t
));
}
}
/*
/*
...
@@ -612,7 +611,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
...
@@ -612,7 +611,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
*/
*/
int
ha_archive
::
real_write_row
(
byte
*
buf
,
azio_stream
*
writer
)
int
ha_archive
::
real_write_row
(
byte
*
buf
,
azio_stream
*
writer
)
{
{
z
_off_t
written
;
my
_off_t
written
;
uint
*
ptr
,
*
end
;
uint
*
ptr
,
*
end
;
DBUG_ENTER
(
"ha_archive::real_write_row"
);
DBUG_ENTER
(
"ha_archive::real_write_row"
);
...
@@ -621,7 +620,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer)
...
@@ -621,7 +620,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer)
if
(
!
delayed_insert
||
!
bulk_insert
)
if
(
!
delayed_insert
||
!
bulk_insert
)
share
->
dirty
=
TRUE
;
share
->
dirty
=
TRUE
;
if
(
written
!=
(
z
_off_t
)
table
->
s
->
reclength
)
if
(
written
!=
(
my
_off_t
)
table
->
s
->
reclength
)
DBUG_RETURN
(
errno
?
errno
:
-
1
);
DBUG_RETURN
(
errno
?
errno
:
-
1
);
/*
/*
We should probably mark the table as damagaged if the record is written
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)
...
@@ -638,7 +637,7 @@ int ha_archive::real_write_row(byte *buf, azio_stream *writer)
{
{
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
get_ptr
(
&
data_ptr
);
((
Field_blob
*
)
table
->
field
[
*
ptr
])
->
get_ptr
(
&
data_ptr
);
written
=
azwrite
(
writer
,
data_ptr
,
(
unsigned
)
size
);
written
=
azwrite
(
writer
,
data_ptr
,
(
unsigned
)
size
);
if
(
written
!=
(
z
_off_t
)
size
)
if
(
written
!=
(
my
_off_t
)
size
)
DBUG_RETURN
(
errno
?
errno
:
-
1
);
DBUG_RETURN
(
errno
?
errno
:
-
1
);
}
}
}
}
...
@@ -830,7 +829,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
...
@@ -830,7 +829,7 @@ int ha_archive::rnd_pos(byte * buf, byte *pos)
DBUG_ENTER
(
"ha_archive::rnd_pos"
);
DBUG_ENTER
(
"ha_archive::rnd_pos"
);
statistic_increment
(
table
->
in_use
->
status_var
.
ha_read_rnd_next_count
,
statistic_increment
(
table
->
in_use
->
status_var
.
ha_read_rnd_next_count
,
&
LOCK_status
);
&
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
);
(
void
)
azseek
(
&
archive
,
current_position
,
SEEK_SET
);
DBUG_RETURN
(
get_row
(
&
archive
,
buf
));
DBUG_RETURN
(
get_row
(
&
archive
,
buf
));
...
...
sql/ha_archive.h
View file @
64db2ba4
...
@@ -51,7 +51,7 @@ class ha_archive: public handler
...
@@ -51,7 +51,7 @@ class ha_archive: public handler
THR_LOCK_DATA
lock
;
/* MySQL lock */
THR_LOCK_DATA
lock
;
/* MySQL lock */
ARCHIVE_SHARE
*
share
;
/* Shared lock info */
ARCHIVE_SHARE
*
share
;
/* Shared lock info */
azio_stream
archive
;
/* Archive file we are working with */
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 */
byte
byte_buffer
[
IO_SIZE
];
/* Initial buffer for our string */
String
buffer
;
/* Buffer used for blob storage */
String
buffer
;
/* Buffer used for blob storage */
ha_rows
scan_rows
;
/* Number of rows left in scan */
ha_rows
scan_rows
;
/* Number of rows left in scan */
...
...
storage/archive/azio.c
View file @
64db2ba4
...
@@ -506,9 +506,9 @@ int azrewind (s)
...
@@ -506,9 +506,9 @@ int azrewind (s)
SEEK_END is not implemented, returns error.
SEEK_END is not implemented, returns error.
In this version of the library, azseek can be extremely slow.
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
;
azio_stream
*
s
;
z
_off_t
offset
;
my
_off_t
offset
;
int
whence
;
int
whence
;
{
{
...
@@ -589,7 +589,7 @@ z_off_t azseek (s, offset, whence)
...
@@ -589,7 +589,7 @@ z_off_t azseek (s, offset, whence)
given compressed file. This position represents a number of bytes in the
given compressed file. This position represents a number of bytes in the
uncompressed data stream.
uncompressed data stream.
*/
*/
z
_off_t
ZEXPORT
aztell
(
file
)
my
_off_t
ZEXPORT
aztell
(
file
)
azio_stream
*
file
;
azio_stream
*
file
;
{
{
return
azseek
(
file
,
0L
,
SEEK_CUR
);
return
azseek
(
file
,
0L
,
SEEK_CUR
);
...
...
storage/archive/azlib.h
View file @
64db2ba4
...
@@ -166,9 +166,9 @@ typedef struct azio_stream {
...
@@ -166,9 +166,9 @@ typedef struct azio_stream {
char
*
msg
;
/* error message */
char
*
msg
;
/* error message */
int
transparent
;
/* 1 if input file is not a .gz file */
int
transparent
;
/* 1 if input file is not a .gz file */
char
mode
;
/* 'w' or 'r' */
char
mode
;
/* 'w' or 'r' */
z
_off_t
start
;
/* start of compressed data in file (header skipped) */
my
_off_t
start
;
/* start of compressed data in file (header skipped) */
z
_off_t
in
;
/* bytes into deflate or inflate */
my
_off_t
in
;
/* bytes into deflate or inflate */
z
_off_t
out
;
/* bytes out of deflate or inflate */
my
_off_t
out
;
/* bytes out of deflate or inflate */
int
back
;
/* one character push-back */
int
back
;
/* one character push-back */
int
last
;
/* true if push-back is last character */
int
last
;
/* true if push-back is last character */
}
azio_stream
;
}
azio_stream
;
...
@@ -232,8 +232,8 @@ extern int azflush(azio_stream *file, int flush);
...
@@ -232,8 +232,8 @@ extern int azflush(azio_stream *file, int flush);
degrade compression.
degrade compression.
*/
*/
extern
z
_off_t
azseek
(
azio_stream
*
file
,
extern
my
_off_t
azseek
(
azio_stream
*
file
,
z
_off_t
offset
,
int
whence
);
my
_off_t
offset
,
int
whence
);
/*
/*
Sets the starting position for the next gzread or gzwrite on the
Sets the starting position for the next gzread or gzwrite on the
given compressed file. The offset represents a number of bytes in the
given compressed file. The offset represents a number of bytes in the
...
@@ -257,7 +257,7 @@ extern int azrewind(azio_stream *file);
...
@@ -257,7 +257,7 @@ extern int azrewind(azio_stream *file);
gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET)
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
Returns the starting position for the next gzread or gzwrite on the
given compressed file. This position represents a number of bytes in 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