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
7fb9a554
Commit
7fb9a554
authored
Aug 16, 2000
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
BitKeeper/etc/logging_ok: Auto merged
parents
2c965034
682767d6
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
101 additions
and
70 deletions
+101
-70
Docs/internals.texi
Docs/internals.texi
+11
-13
Docs/manual.texi
Docs/manual.texi
+49
-42
client/Makefile.am
client/Makefile.am
+3
-0
configure.in
configure.in
+1
-0
include/Makefile.am
include/Makefile.am
+3
-0
libmysql/Makefile.am
libmysql/Makefile.am
+3
-0
myisam/mi_check.c
myisam/mi_check.c
+15
-7
sql-bench/Makefile.am
sql-bench/Makefile.am
+3
-0
sql/Makefile.am
sql/Makefile.am
+3
-0
sql/slave.cc
sql/slave.cc
+1
-1
sql/sql_insert.cc
sql/sql_insert.cc
+9
-7
No files found.
Docs/internals.texi
View file @
7fb9a554
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
@c @synindex tp fn cp
@c @synindex tp fn cp
@synindex cp fn
@synindex cp fn
@iftex
@iftex
@c Well this is normal in Europe. Maybe this shold go into the include.texi?
@c Well this is normal in Europe. Maybe this sho
u
ld go into the include.texi?
@afourpaper
@afourpaper
@end iftex
@end iftex
@c Get version and other info
@c Get version and other info
...
@@ -47,10 +47,10 @@ This is a manual about @strong{MySQL} internals.
...
@@ -47,10 +47,10 @@ This is a manual about @strong{MySQL} internals.
@end menu
@end menu
@node caching
@node caching
@chapter How
do MySQL handle
caching
@chapter How
MySQL handles
caching
MySQL has the following caches:
MySQL has the following caches:
(Note that the some of the filename ha
s wrong spelling of cache
:)
(Note that the some of the filename ha
ve a wrong spelling of cache.
:)
@itemize @bullet
@itemize @bullet
@item Key cache
@item Key cache
...
@@ -76,17 +76,17 @@ cached for each user/database combination. sql/sql_acl.cc
...
@@ -76,17 +76,17 @@ cached for each user/database combination. sql/sql_acl.cc
@item Heap table cache
@item Heap table cache
Many use of GROUP BY or DISTINCT caches all found
Many use of GROUP BY or DISTINCT caches all found
rows in a HEAP table (this is a very quick
, in
memory table with hash index)
rows in a HEAP table (this is a very quick
in-
memory table with hash index)
@item Join row cache.
@item Join row cache.
For every full join in a SELECT statement (a full join here means there
For every full join in a SELECT statement (a full join here means there
w
as
no keys that one could use to find the next table in a list), the
w
ere
no keys that one could use to find the next table in a list), the
found rows are cached in a join cache. One SELECT query can use many
found rows are cached in a join cache. One SELECT query can use many
join caches in the worst case.
join caches in the worst case.
@end itemize
@end itemize
@node flush tables
@node flush tables
@chapter How
do MySQL handle
flush tables
@chapter How
MySQL handles
flush tables
@itemize @bullet
@itemize @bullet
@item
@item
...
@@ -122,23 +122,23 @@ same tables.
...
@@ -122,23 +122,23 @@ same tables.
@end itemize
@end itemize
@node Filesort
@node Filesort
@chapter How
do MySQL do
sorting (filesort)
@chapter How
MySQL does
sorting (filesort)
- Read all rows according to key or by table-scanning.
- Read all rows according to key or by table-scanning.
- Store the sort-key in a buffer (sort
_
buffer).
- Store the sort-key in a buffer (sort
_
buffer).
- When the buffer gets full, run a qsort on it and store the result
- When the buffer gets full, run a qsort on it and store the result
in a temporary file. Save a pointer to the sorted block.
in a temporary file. Save a pointer to the sorted block.
- Repeat
e the above until all rows has
been read.
- Repeat
the above until all rows have
been read.
- Repeat the following until there is less than MERGEBUFF2 (15) blocks left.
- Repeat the following until there is less than MERGEBUFF2 (15) blocks left.
- Do a multi-merge of up to MERGEBUFF (7) regions to one block in
- Do a multi-merge of up to MERGEBUFF (7) regions to one block in
another temporary file. Repeat until all blocks from the first file
another temporary file. Repeat until all blocks from the first file
is
in the second file.
are
in the second file.
- On the last multi-merge, only the pointer to the row (last part of
- On the last multi-merge, only the pointer to the row (last part of
the sort-key) is written to a result file.
the sort-key) is written to a result file.
- Now the code in sql/records.cc will be used to read through the
- Now the code in sql/records.cc will be used to read through the
m
in sorted order by using the row pointersin the result file.
in sorted order by using the row pointers
in the result file.
To optimize this, we read in a big block of row pointers, sort these
To optimize this, we read in a big block of row pointers, sort these
and then we read the rows in the sorted order into a row buffer
and then we read the rows in the sorted order into a row buffer
(record
_
buffer) .
(record
_
buffer) .
...
@@ -152,5 +152,3 @@ same tables.
...
@@ -152,5 +152,3 @@ same tables.
@contents
@contents
@bye
@bye
Do text here do something ??
Docs/manual.texi
View file @
7fb9a554
...
@@ -1680,12 +1680,12 @@ Big changes made in @strong{MySQL} 3.22.12.
...
@@ -1680,12 +1680,12 @@ Big changes made in @strong{MySQL} 3.22.12.
@item @strong{MyODBC} (uses ODBC SDK 2.5) --- Gamma
@item @strong{MyODBC} (uses ODBC SDK 2.5) --- Gamma
It seems to work well with some programs.
It seems to work well with some programs.
@item
replication -- a
lpha
@item
Replication -- A
lpha
We are still working on replication, so don't expect this to be rock
We are still working on replication, so don't expect this to be rock
solid yet. On the other hand, some @strong{MySQL} users are already
solid yet. On the other hand, some @strong{MySQL} users are already
using this with good results...
using this with good results...
@item BDB
tables -- a
lpha
@item BDB
Tables -- A
lpha
The Berkeley DB code is very stable, but we are still improving the interface
The Berkeley DB code is very stable, but we are still improving the interface
between @strong{MySQL} and BDB tables, so it will take some time before this
between @strong{MySQL} and BDB tables, so it will take some time before this
is as tested as the other table types.
is as tested as the other table types.
...
@@ -6242,7 +6242,7 @@ and @strong{mysqld} should be ready to run.
...
@@ -6242,7 +6242,7 @@ and @strong{mysqld} should be ready to run.
@subsection Alpha-DEC-Unix notes (Tru64)
@subsection Alpha-DEC-Unix notes (Tru64)
If you are using egcs 1.1.2 on Digital UNIX, you should upgrade to gcc
If you are using egcs 1.1.2 on Digital UNIX, you should upgrade to gcc
2.95.2, as egcs
has some bad bugs on DEC
!
2.95.2, as egcs
on DEC has some serious bugs
!
When compiling threaded programs under Digital UNIX, the documentation
When compiling threaded programs under Digital UNIX, the documentation
recommends using the @code{-pthread} option for @code{cc} and @code{cxx} and
recommends using the @code{-pthread} option for @code{cc} and @code{cxx} and
...
@@ -9718,7 +9718,7 @@ When running @strong{MySQL}, follow these guidelines whenever possible:
...
@@ -9718,7 +9718,7 @@ When running @strong{MySQL}, follow these guidelines whenever possible:
@itemize @bullet
@itemize @bullet
@item
@item
DON'T EVER GIVE ANY
BODY (BU
T THE @strong{MySQL} ROOT USER) ACCESS TO THE
DON'T EVER GIVE ANY
ONE (EXCEP
T THE @strong{MySQL} ROOT USER) ACCESS TO THE
mysql.user DATABASE! The encrypted password is the real password in
mysql.user DATABASE! The encrypted password is the real password in
@strong{MySQL}; If you know this for one user you can easily login as
@strong{MySQL}; If you know this for one user you can easily login as
him if you have access to his 'host'.
him if you have access to his 'host'.
...
@@ -10328,9 +10328,9 @@ Privileges on the @code{mysql} database can be used to change passwords
...
@@ -10328,9 +10328,9 @@ Privileges on the @code{mysql} database can be used to change passwords
and other access privilege information. (Passwords are stored
and other access privilege information. (Passwords are stored
encrypted, so a malicious user cannot simply read them to know the plain
encrypted, so a malicious user cannot simply read them to know the plain
text password). If they can access the @code{mysql.user} password
text password). If they can access the @code{mysql.user} password
column, they can
however
use it to login into the @strong{MySQL} server
column, they can use it to login into the @strong{MySQL} server
for the given user. With sufficient privileges, the same use can
for the given user. With sufficient privileges, the same use
r
can
however
replace a password with a different one.)
replace a password with a different one.)
@end itemize
@end itemize
There are some things that you cannot do with the @strong{MySQL}
There are some things that you cannot do with the @strong{MySQL}
...
@@ -10628,7 +10628,7 @@ Non-blank @code{Password} values represent encrypted passwords.
...
@@ -10628,7 +10628,7 @@ Non-blank @code{Password} values represent encrypted passwords.
see. Rather, the password supplied by a user who is attempting to
see. Rather, the password supplied by a user who is attempting to
connect is encrypted (using the @code{PASSWORD()} function). The
connect is encrypted (using the @code{PASSWORD()} function). The
encrypted password is then used when the client/server is checking if
encrypted password is then used when the client/server is checking if
the password is co
nn
ect (This is done without the encrypted password
the password is co
rr
ect (This is done without the encrypted password
ever traveling over the connection). Note that from @strong{MySQL}'s
ever traveling over the connection). Note that from @strong{MySQL}'s
point of view the encrypted password is the REAL password, so you should
point of view the encrypted password is the REAL password, so you should
not give anyone access to it! In particular, don't give normal users
not give anyone access to it! In particular, don't give normal users
...
@@ -11448,7 +11448,7 @@ normally this isn't a big problem.
...
@@ -11448,7 +11448,7 @@ normally this isn't a big problem.
@item
@item
If you get an error message where the hostname is not shown or where the
If you get an error message where the hostname is not shown or where the
host
name is an IP, even if you try to connect with an
hostname:
host
name is an IP, even if you try to connect with a
hostname:
@example
@example
shell> mysqladmin -u root -pxxxx -h some-hostname ver
shell> mysqladmin -u root -pxxxx -h some-hostname ver
...
@@ -11464,7 +11464,7 @@ are:
...
@@ -11464,7 +11464,7 @@ are:
@item
@item
Try to find out what is wrong with your DNS server and fix this.
Try to find out what is wrong with your DNS server and fix this.
@item
@item
Specify IP
'
s instead of hostnames in the @code{MySQL} privilege tables.
Specify IPs instead of hostnames in the @code{MySQL} privilege tables.
@item
@item
Start mysqld with @code{--skip-name-resolve}.
Start mysqld with @code{--skip-name-resolve}.
@item
@item
...
@@ -11555,21 +11555,22 @@ sure you haven't specified an old password in any of your option files!
...
@@ -11555,21 +11555,22 @@ sure you haven't specified an old password in any of your option files!
If you make changes to the grant tables directly (using @code{INSERT} or
If you make changes to the grant tables directly (using @code{INSERT} or
@code{UPDATE} statement) and your changes seem to be ignored, remember
@code{UPDATE} statement) and your changes seem to be ignored, remember
that you must issue a @code{FLUSH PRIVILEGES} statement or execute a
that you must issue a @code{FLUSH PRIVILEGES} statement or execute a
@code{mysqladmin flush-privileges} command to cause the server to reread
@code{mysqladmin flush-privileges} command to cause the server to re
-
read
the privilege tables. Otherwise your changes have no effect until the
the privilege tables. Otherwise your changes have no effect until the
next time the server is restarted. Remember that after you set the
next time the server is restarted. Remember that after you set the
@code{root} password with an @code{UPDATE} command, you won't need to
@code{root} password with an @code{UPDATE} command, you won't need to
specify it until after you flush the privileges, because the server
specify it until after you flush the privileges, because the server
still
won't know you've changed the password yet!
won't know you've changed the password yet!
@item
@item
If you have access problems with a Perl, PHP, Python or ODBC program, try to
If you have access problems with a Perl, PHP, Python or ODBC program, try to
connect to the server with @code{mysql -u user_name db_name} or @code{mysql
connect to the server with @code{mysql -u user_name db_name} or @code{mysql
-u user_name -pyour_pass db_name}. If you are able to connect using the
-u user_name -pyour_pass db_name}. If you are able to connect using the
@code{mysql} client, there is a problem with your program and not with the
@code{mysql} client, there is a problem with your program and not with the
access privileges. (Not
ic
e that there is no space between @code{-p} and the
access privileges. (Note that there is no space between @code{-p} and the
password; you can also use the @code{--password=your_pass} syntax to specify
password; you can also use the @code{--password=your_pass} syntax to specify
the password.)
the password. If you use the @code{-p} option alone, MySQL will prompt you
for the password.)
@item
@item
For testing, start the @code{mysqld} daemon with the
For testing, start the @code{mysqld} daemon with the
...
@@ -15414,8 +15415,8 @@ a way that it is equivalent to @code{"1:10" MINUTE_SECOND}. This is
...
@@ -15414,8 +15415,8 @@ a way that it is equivalent to @code{"1:10" MINUTE_SECOND}. This is
analogous to the way that @strong{MySQL} interprets @code{TIME} values
analogous to the way that @strong{MySQL} interprets @code{TIME} values
as representing elapsed time rather than as time of day.
as representing elapsed time rather than as time of day.
Note that if you add
/
subtract a date value against something that
Note that if you add
or
subtract a date value against something that
contains a time part, the date value will
automaticly be
converted to a
contains a time part, the date value will
be automatically
converted to a
datetime value:
datetime value:
@example
@example
...
@@ -16670,9 +16671,9 @@ index exists, it drops the first @code{UNIQUE} index in the table.
...
@@ -16670,9 +16671,9 @@ index exists, it drops the first @code{UNIQUE} index in the table.
if no @code{PRIMARY KEY} was specified explicitly.)
if no @code{PRIMARY KEY} was specified explicitly.)
@item
@item
If you
are doing an @code{ALTER TABLE} on/to a @code{MyISAM} table,
If you
use @code{ALTER TABLE} on a @code{MyISAM} table, all non-unique
all non unique index
are created in a separate batch (like in @code{REPAIR}).
indexes
are created in a separate batch (like in @code{REPAIR}).
This should make @code{ALTER TABLE} much faster when you have many index.
This should make @code{ALTER TABLE} much faster when you have many index
es
.
@item
@item
@findex mysql_info()
@findex mysql_info()
...
@@ -17636,10 +17637,10 @@ If you load data from a local file using the @code{LOCAL} keyword, the server
...
@@ -17636,10 +17637,10 @@ If you load data from a local file using the @code{LOCAL} keyword, the server
has no way to stop transmission of the file in the middle of the operation,
has no way to stop transmission of the file in the middle of the operation,
so the default bahavior is the same as if @code{IGNORE} is specified.
so the default bahavior is the same as if @code{IGNORE} is specified.
If you
are @code{LOAD DATA INFILE} to
an empty @code{MyISAM} table,
If you
use @code{LOAD DATA INFILE} on
an empty @code{MyISAM} table,
all non
unique index
are created in a separate batch (like in @code{REPAIR}).
all non
-unique indexes
are created in a separate batch (like in @code{REPAIR}).
This normally makes @code{LOAD DATA INFILE} much faster when you have many
This normally makes @code{LOAD DATA INFILE} much faster when you have many
index.
index
es
.
@code{LOAD DATA INFILE} is the complement of @code{SELECT ... INTO OUTFILE}.
@code{LOAD DATA INFILE} is the complement of @code{SELECT ... INTO OUTFILE}.
@xref{SELECT, , @code{SELECT}}.
@xref{SELECT, , @code{SELECT}}.
...
@@ -25546,7 +25547,7 @@ memory before dumping the result. This will probably be a problem if
...
@@ -25546,7 +25547,7 @@ memory before dumping the result. This will probably be a problem if
you are dumping a big database.
you are dumping a big database.
Note that if you are using a new copy of the @code{mysqldump} program
Note that if you are using a new copy of the @code{mysqldump} program
and
is
going to do a dump that will be read into a very old @code{MySQL}
and
you are
going to do a dump that will be read into a very old @code{MySQL}
server, you should not use the @code{--opt} or @code{-e} options.
server, you should not use the @code{--opt} or @code{-e} options.
@code{mysqldump} supports the following options:
@code{mysqldump} supports the following options:
...
@@ -28026,10 +28027,10 @@ To make Access work:
...
@@ -28026,10 +28027,10 @@ To make Access work:
@itemize @bullet
@itemize @bullet
@item
@item
If you are using Access 2000, you should get an install Microsoft MDAC from
If you are using Access 2000, you should get an
d
install Microsoft MDAC from
@uref{http://www.microsoft.com/data/download_21242023.htm}. This will
@uref{http://www.microsoft.com/data/download_21242023.htm}. This will
fix the bug in Access that when you export data to @strong{MySQL}, the
fix the bug in Access that when you export data to @strong{MySQL}, the
table and column names
was
n't specified.
table and column names
are
n't specified.
@item
@item
You should have a primary key in the table.
You should have a primary key in the table.
@item
@item
...
@@ -34903,7 +34904,7 @@ By Elizabeth.
...
@@ -34903,7 +34904,7 @@ By Elizabeth.
@item @uref{http://www.mysql.com/Downloads/Contrib/mybackup}
@item @uref{http://www.mysql.com/Downloads/Contrib/mybackup}
@item @uref{http://www.mswanson.com/mybackup, mybackup home page}
@item @uref{http://www.mswanson.com/mybackup, mybackup home page}
Wrapper for mysqldump to backup all databases. By
"Marc Swanson"
.
Wrapper for mysqldump to backup all databases. By
Marc Swanson
.
@end itemize
@end itemize
@appendixsec RPMs for common tools (Most are for RedHat 6.1)
@appendixsec RPMs for common tools (Most are for RedHat 6.1)
...
@@ -35309,8 +35310,8 @@ and will soon be declared beta, gamma and release.
...
@@ -35309,8 +35310,8 @@ and will soon be declared beta, gamma and release.
@appendixsubsec Changes in release 3.23.23
@appendixsubsec Changes in release 3.23.23
@itemize @bullet
@itemize @bullet
@item
@item
Changed @code{ALTER TABLE} to create non
unique index
in a separate batch
Changed @code{ALTER TABLE} to create non
-unique indexes
in a separate batch
(which should make @code{ALTER TABLE} much faster when you have many index
)
(which should make @code{ALTER TABLE} much faster when you have many index
es).
@item
@item
Added delayed index handling to @code{LOAD DATA INFILE}, when you are
Added delayed index handling to @code{LOAD DATA INFILE}, when you are
reading into an empty file.
reading into an empty file.
...
@@ -35321,7 +35322,6 @@ Fixed crash when adding a default value to a @code{BLOB} column.
...
@@ -35321,7 +35322,6 @@ Fixed crash when adding a default value to a @code{BLOB} column.
@item
@item
Fixed a bug with @code{DATE_ADD/DATE_SUB} where it returned a datetime instead
Fixed a bug with @code{DATE_ADD/DATE_SUB} where it returned a datetime instead
of a date.
of a date.
datetime.
@item
@item
Fixed a problem with the thread cache which made some threads show up as
Fixed a problem with the thread cache which made some threads show up as
@code{***DEAD***} in @code{SHOW PROCESSLIST}.
@code{***DEAD***} in @code{SHOW PROCESSLIST}.
...
@@ -35330,10 +35330,17 @@ Fixed a lock in our thr_rwlock code, which could make selects that run
...
@@ -35330,10 +35330,17 @@ Fixed a lock in our thr_rwlock code, which could make selects that run
at the same time as concurrent inserts crash. This only affects systems
at the same time as concurrent inserts crash. This only affects systems
that don't have the @code{pthread_rwlock_rdlock} code.
that don't have the @code{pthread_rwlock_rdlock} code.
@item
@item
When deleting rows with a non-unique key in
HEAP table, all rows was
n't
When deleting rows with a non-unique key in
a HEAP table, all rows were
n't
always deleted.
always deleted.
@item
@item
Fixed the BDB tables works on part keys.
Fixed that BDB tables work on part keys.
@item
Added @code{CHANGE MASTER TO} command
@item
Fixed fatal bug in @code{LOAD TABLE FROM MASTER} that did not lock the table during index re-build
@item @code{LOAD DATA INFILE} broke replication if the database was excluded from replication
@item More variables in @code{SHOW SLAVE STATUS} and @code{SHOW MASTER STATUS}
@item @code{SLAVE STOP} now will not return until the slave thread actually exits
@end itemize
@end itemize
@node News-3.23.22, News-3.23.21, News-3.23.23, News-3.23.x
@node News-3.23.22, News-3.23.21, News-3.23.23, News-3.23.x
...
@@ -35343,7 +35350,7 @@ Fixed the BDB tables works on part keys.
...
@@ -35343,7 +35350,7 @@ Fixed the BDB tables works on part keys.
Fixed that @code{lex_hash.h} is created properly for each @code{MySQL}
Fixed that @code{lex_hash.h} is created properly for each @code{MySQL}
distribution.
distribution.
@item
@item
Fixed that @code{MASTER} and @code{COLLECTION} are not
a
reserved words.
Fixed that @code{MASTER} and @code{COLLECTION} are not reserved words.
@item
@item
The log generated by @code{--slow-query-log} didn't contain the whole queries.
The log generated by @code{--slow-query-log} didn't contain the whole queries.
@item
@item
...
@@ -35356,24 +35363,25 @@ gen_lex_hash.c.
...
@@ -35356,24 +35363,25 @@ gen_lex_hash.c.
Fixed memory leak in the client library when using @code{host=..} in the
Fixed memory leak in the client library when using @code{host=..} in the
@code{my.cnf} file.
@code{my.cnf} file.
@item
@item
Optimized functions that manipulate
s
the hours/minutes/seconds.
Optimized functions that manipulate the hours/minutes/seconds.
@item
@item
Fixed bug when comparing the result of @code{DATE_ADD
}/@code{DATE_SUB
}
Fixed bug when comparing the result of @code{DATE_ADD
()}/@code{DATE_SUB()
}
against a number
against a number
.
@item
@item
Changed the meaning of @code{-F, --fast} for @code{myisamchk}. Added option
Changed the meaning of @code{-F, --fast} for @code{myisamchk}. Added option
@code{-C, --check-only-changed} to @code{myisamchk}.
@code{-C, --check-only-changed} to @code{myisamchk}.
@item
@item
Added @code{ANALYZE table_name} to update key statistics for tables.
Added @code{ANALYZE table_name} to update key statistics for tables.
@item
@item
Changed binary items @code{0x...} to be default regarded as an integer
Changed binary items @code{0x...} to be default regarded as an integer
.
@item
@item
Fix for SCO and @code{SHOW PROCESSLIST}.
Fix for SCO and @code{SHOW PROCESSLIST}.
@item
@item
Added @code{auto-rehash} on reconnect for the @code{mysql} client.
Added @code{auto-rehash} on reconnect for the @code{mysql} client.
@item
@item
Fixed a newly introduced bug in @code{MyISAM}, where the indexfile couldn't
Fixed a newly introduced bug in @code{MyISAM}, where the index
file couldn't
get bigger than 64M.
get bigger than 64M.
@item Added @code{SHOW MASTER STATUS} and @code{SHOW SLAVE STATUS}
@end itemize
@end itemize
@node News-3.23.21, News-3.23.20, News-3.23.22, News-3.23.x
@node News-3.23.21, News-3.23.20, News-3.23.22, News-3.23.x
...
@@ -35407,7 +35415,7 @@ index files gets full during an @code{INSERT}/@code{UPDATE}.
...
@@ -35407,7 +35415,7 @@ index files gets full during an @code{INSERT}/@code{UPDATE}.
@code{myisamchk} didn't correctly update row checksum when used with
@code{myisamchk} didn't correctly update row checksum when used with
@code{-ro} (This only gave an warning in subsequent runs).
@code{-ro} (This only gave an warning in subsequent runs).
@item
@item
Fixed bug in @code{REPAIR TABLE} so that it works with tables without index.
Fixed bug in @code{REPAIR TABLE} so that it works with tables without index
es
.
@item
@item
Fixed buffer overrun in @code{DROP DATABASE}
Fixed buffer overrun in @code{DROP DATABASE}
@item
@item
...
@@ -39430,7 +39438,7 @@ FreeBSD and MIT-pthreads; Do sleeping threads take CPU?
...
@@ -39430,7 +39438,7 @@ FreeBSD and MIT-pthreads; Do sleeping threads take CPU?
@item
@item
Check if locked threads take any CPU.
Check if locked threads take any CPU.
@item
@item
Fix configure so th
e
one can compile all libraries (like @code{MyISAM})
Fix configure so th
at
one can compile all libraries (like @code{MyISAM})
without threads.
without threads.
@item
@item
Change to use mkstemp() instead of tempnam() for system that supports the call.
Change to use mkstemp() instead of tempnam() for system that supports the call.
...
@@ -39488,13 +39496,12 @@ TEXT_FIELDS (text_field1, text_field2, text_field3)
...
@@ -39488,13 +39496,12 @@ TEXT_FIELDS (text_field1, text_field2, text_field3)
SET table_field1=concatenate(text_field1, text_field2), table_field3=23
SET table_field1=concatenate(text_field1, text_field2), table_field3=23
IGNORE text_field3
IGNORE text_field3
This can be used to skip over extra columns in the text file, update columns
This can be used to skip over extra columns in the text file,
or
update columns
based on expressions of the read data...
based on expressions of the read data...
on the in-data and
@end example
@end example
@item
@item
@code{LOAD DATA INFILE 'file_name' INTO TABLE 'table_name' ERRORS TO err_table_name}
@code{LOAD DATA INFILE 'file_name' INTO TABLE 'table_name' ERRORS TO err_table_name}
which would cause any errors/
warnings to be logged into the err_table_name
This would cause any errors and
warnings to be logged into the err_table_name
table. That table would have a structure like:
table. That table would have a structure like:
@example
@example
client/Makefile.am
View file @
7fb9a554
...
@@ -41,3 +41,6 @@ DEFS = -DUNDEF_THREADS_HACK
...
@@ -41,3 +41,6 @@ DEFS = -DUNDEF_THREADS_HACK
thread_test.o
:
thread_test.c
thread_test.o
:
thread_test.c
$(COMPILE)
-c
@MT_INCLUDES@
$(INCLUDES)
$<
$(COMPILE)
-c
@MT_INCLUDES@
$(INCLUDES)
$<
# Don't update the files from bitkeeper
%
::
SCCS/s.%
configure.in
View file @
7fb9a554
...
@@ -211,6 +211,7 @@ AC_MSG_RESULT($mysql_cv_sys_os)
...
@@ -211,6 +211,7 @@ AC_MSG_RESULT($mysql_cv_sys_os)
case
"
$target_os
"
in
case
"
$target_os
"
in
sco3.2v5
*
)
sco3.2v5
*
)
CFLAGS
=
"
$CFLAGS
-DSCO"
CFLAGS
=
"
$CFLAGS
-DSCO"
CXXFLAGS
=
"
$CXXFLAGS
-DSCO"
LD
=
'$(CC) $(CFLAGS)'
LD
=
'$(CC) $(CFLAGS)'
case
"
$CFLAGS
"
in
case
"
$CFLAGS
"
in
*
-belf
*
)
*
-belf
*
)
...
...
include/Makefile.am
View file @
7fb9a554
...
@@ -51,3 +51,6 @@ my_global.h: global.h
...
@@ -51,3 +51,6 @@ my_global.h: global.h
# generated by configure from the .h.in files
# generated by configure from the .h.in files
dist-hook
:
dist-hook
:
rm
-f
$(distdir)
/mysql_version.h
$(distdir)
/my_config.h
rm
-f
$(distdir)
/mysql_version.h
$(distdir)
/my_config.h
# Don't update the files from bitkeeper
%
::
SCCS/s.%
libmysql/Makefile.am
View file @
7fb9a554
...
@@ -147,3 +147,6 @@ do-lib-dist:
...
@@ -147,3 +147,6 @@ do-lib-dist:
echo
' $
$(AR)
r $$@ $$?'
>>
$$
dir
/Makefile
;
\
echo
' $
$(AR)
r $$@ $$?'
>>
$$
dir
/Makefile
;
\
gtar cvzf
$$
dir.tar.gz
$$
dir
;
\
gtar cvzf
$$
dir.tar.gz
$$
dir
;
\
cd
$$
dir
;
gmake
cd
$$
dir
;
gmake
# Don't update the files from bitkeeper
%
::
SCCS/s.%
myisam/mi_check.c
View file @
7fb9a554
...
@@ -1600,7 +1600,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -1600,7 +1600,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
char
llbuff
[
22
];
char
llbuff
[
22
];
SORT_INFO
*
sort_info
=
&
param
->
sort_info
;
SORT_INFO
*
sort_info
=
&
param
->
sort_info
;
ulonglong
key_map
=
share
->
state
.
key_map
;
ulonglong
key_map
=
share
->
state
.
key_map
;
DBUG_ENTER
(
"
rep
_by_sort"
);
DBUG_ENTER
(
"
mi_repair
_by_sort"
);
start_records
=
info
->
state
->
records
;
start_records
=
info
->
state
->
records
;
got_error
=
1
;
got_error
=
1
;
...
@@ -1630,9 +1630,6 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -1630,9 +1630,6 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
info
->
opt_flag
|=
WRITE_CACHE_USED
;
info
->
opt_flag
|=
WRITE_CACHE_USED
;
info
->
rec_cache
.
file
=
info
->
dfile
;
/* for sort_delete_record */
info
->
rec_cache
.
file
=
info
->
dfile
;
/* for sort_delete_record */
/* Flush key cache for this file if we are calling this outside myisamchk */
flush_key_blocks
(
share
->
kfile
,
FLUSH_IGNORE_CHANGED
);
if
(
!
(
sort_info
->
record
=
(
byte
*
)
my_malloc
((
uint
)
share
->
base
.
pack_reclength
,
if
(
!
(
sort_info
->
record
=
(
byte
*
)
my_malloc
((
uint
)
share
->
base
.
pack_reclength
,
MYF
(
0
))))
MYF
(
0
))))
{
{
...
@@ -1669,15 +1666,24 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -1669,15 +1666,24 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
info
->
update
=
(
short
)
(
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
);
info
->
update
=
(
short
)
(
HA_STATE_CHANGED
|
HA_STATE_ROW_CHANGED
);
if
(
!
(
param
->
testflag
&
T_CREATE_MISSING_KEYS
))
if
(
!
(
param
->
testflag
&
T_CREATE_MISSING_KEYS
))
{
{
/*
Flush key cache for this file if we are calling this outside
myisamchk
*/
flush_key_blocks
(
share
->
kfile
,
FLUSH_IGNORE_CHANGED
);
/* Clear the pointers to the given rows */
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
)
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
)
share
->
state
.
key_root
[
i
]
=
HA_OFFSET_ERROR
;
share
->
state
.
key_root
[
i
]
=
HA_OFFSET_ERROR
;
for
(
i
=
0
;
i
<
share
->
state
.
header
.
max_block_size
;
i
++
)
for
(
i
=
0
;
i
<
share
->
state
.
header
.
max_block_size
;
i
++
)
share
->
state
.
key_del
[
i
]
=
HA_OFFSET_ERROR
;
share
->
state
.
key_del
[
i
]
=
HA_OFFSET_ERROR
;
info
->
state
->
key_file_length
=
share
->
base
.
keystart
;
}
}
else
else
{
if
(
flush_key_blocks
(
share
->
kfile
,
FLUSH_FORCE_WRITE
))
goto
err
;
key_map
=
~
key_map
;
/* Create the missing keys */
key_map
=
~
key_map
;
/* Create the missing keys */
}
info
->
state
->
key_file_length
=
share
->
base
.
keystart
;
sort_info
->
info
=
info
;
sort_info
->
info
=
info
;
sort_info
->
param
=
param
;
sort_info
->
param
=
param
;
...
@@ -1758,6 +1764,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
...
@@ -1758,6 +1764,7 @@ int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
if
(
param
->
testflag
&
T_STATISTICS
)
if
(
param
->
testflag
&
T_STATISTICS
)
update_key_parts
(
sort_info
->
keyinfo
,
rec_per_key_part
,
sort_info
->
unique
,
update_key_parts
(
sort_info
->
keyinfo
,
rec_per_key_part
,
sort_info
->
unique
,
(
ulonglong
)
info
->
state
->
records
);
(
ulonglong
)
info
->
state
->
records
);
share
->
state
.
key_map
|=
(
ulonglong
)
1
<<
sort_info
->
key
;
if
(
sort_info
->
fix_datafile
)
if
(
sort_info
->
fix_datafile
)
{
{
...
@@ -2933,7 +2940,8 @@ void mi_dectivate_non_unique_index(MI_INFO *info, ha_rows rows)
...
@@ -2933,7 +2940,8 @@ void mi_dectivate_non_unique_index(MI_INFO *info, ha_rows rows)
MI_KEYDEF
*
key
=
share
->
keyinfo
;
MI_KEYDEF
*
key
=
share
->
keyinfo
;
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
,
key
++
)
for
(
i
=
0
;
i
<
share
->
base
.
keys
;
i
++
,
key
++
)
{
{
if
(
!
(
key
->
flag
&
HA_NOSAME
)
&&
!
mi_too_big_key_for_sort
(
key
,
rows
))
if
(
!
(
key
->
flag
&
HA_NOSAME
)
&&
!
mi_too_big_key_for_sort
(
key
,
rows
)
&&
info
->
s
->
base
.
auto_key
!=
i
+
1
)
{
{
share
->
state
.
key_map
&=
~
((
ulonglong
)
1
<<
i
);
share
->
state
.
key_map
&=
~
((
ulonglong
)
1
<<
i
);
info
->
update
|=
HA_STATE_CHANGED
;
info
->
update
|=
HA_STATE_CHANGED
;
...
...
sql-bench/Makefile.am
View file @
7fb9a554
...
@@ -77,3 +77,6 @@ SUFFIXES = .sh
...
@@ -77,3 +77,6 @@ SUFFIXES = .sh
$<
>
$@
-t
$<
>
$@
-t
@
CHMOD@ +x
$@
-t
@
CHMOD@ +x
$@
-t
@
MV@
$@
-t
$@
@
MV@
$@
-t
$@
# Don't update the files from bitkeeper
%
::
SCCS/s.%
sql/Makefile.am
View file @
7fb9a554
...
@@ -124,3 +124,6 @@ sql_lex.o: lex_hash.h
...
@@ -124,3 +124,6 @@ sql_lex.o: lex_hash.h
#distclean:
#distclean:
# rm -f lex_hash.h
# rm -f lex_hash.h
# Don't update the files from bitkeeper
%
::
SCCS/s.%
sql/slave.cc
View file @
7fb9a554
...
@@ -169,7 +169,7 @@ static int create_table_from_dump(THD* thd, NET* net, const char* db,
...
@@ -169,7 +169,7 @@ static int create_table_from_dump(THD* thd, NET* net, const char* db,
tables
.
name
=
tables
.
real_name
=
(
char
*
)
table_name
;
tables
.
name
=
tables
.
real_name
=
(
char
*
)
table_name
;
tables
.
lock_type
=
TL_WRITE
;
tables
.
lock_type
=
TL_WRITE
;
thd
->
proc_info
=
"Opening master dump table"
;
thd
->
proc_info
=
"Opening master dump table"
;
if
(
open_tables
(
thd
,
&
tables
)
||
!
tables
.
table
)
if
(
!
open_ltable
(
thd
,
&
tables
,
TL_WRITE
)
)
{
{
// open tables will send the error
// open tables will send the error
sql_print_error
(
"create_table_from_dump: could not open created table"
);
sql_print_error
(
"create_table_from_dump: could not open created table"
);
...
...
sql/sql_insert.cc
View file @
7fb9a554
...
@@ -1154,7 +1154,6 @@ bool delayed_insert::handle_inserts(void)
...
@@ -1154,7 +1154,6 @@ bool delayed_insert::handle_inserts(void)
int
int
select_insert
::
prepare
(
List
<
Item
>
&
values
)
select_insert
::
prepare
(
List
<
Item
>
&
values
)
{
{
TABLE
*
form
=
table
;
DBUG_ENTER
(
"select_insert::prepare"
);
DBUG_ENTER
(
"select_insert::prepare"
);
save_time_stamp
=
table
->
time_stamp
;
save_time_stamp
=
table
->
time_stamp
;
...
@@ -1163,15 +1162,16 @@ select_insert::prepare(List<Item> &values)
...
@@ -1163,15 +1162,16 @@ select_insert::prepare(List<Item> &values)
if
(
fields
->
elements
)
if
(
fields
->
elements
)
{
{
restore_record
(
form
,
2
);
// Get empty record
restore_record
(
table
,
2
);
// Get empty record
}
}
else
else
form
->
record
[
0
][
0
]
=
form
->
record
[
2
][
0
];
// Fix delete marker
table
->
record
[
0
][
0
]
=
table
->
record
[
2
][
0
];
// Fix delete marker
form
->
next_number_field
=
form
->
found_next_number_field
;
table
->
next_number_field
=
table
->
found_next_number_field
;
thd
->
count_cuted_fields
=
1
;
/* calc cuted fields */
thd
->
count_cuted_fields
=
1
;
/* calc cuted fields */
thd
->
cuted_fields
=
0
;
thd
->
cuted_fields
=
0
;
if
(
info
.
handle_duplicates
!=
DUP_REPLACE
)
if
(
info
.
handle_duplicates
!=
DUP_REPLACE
)
form
->
file
->
extra
(
HA_EXTRA_WRITE_CACHE
);
table
->
file
->
extra
(
HA_EXTRA_WRITE_CACHE
);
table
->
file
->
deactivate_non_unique_index
((
ha_rows
)
0
);
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
@@ -1213,14 +1213,16 @@ bool select_insert::send_data(List<Item> &values)
...
@@ -1213,14 +1213,16 @@ bool select_insert::send_data(List<Item> &values)
void
select_insert
::
send_error
(
uint
errcode
,
const
char
*
err
)
void
select_insert
::
send_error
(
uint
errcode
,
const
char
*
err
)
{
{
::
send_error
(
&
thd
->
net
,
errcode
,
err
);
::
send_error
(
&
thd
->
net
,
errcode
,
err
);
VOID
(
table
->
file
->
extra
(
HA_EXTRA_NO_CACHE
));
table
->
file
->
extra
(
HA_EXTRA_NO_CACHE
);
table
->
file
->
activate_all_index
(
thd
);
}
}
bool
select_insert
::
send_eof
()
bool
select_insert
::
send_eof
()
{
{
int
error
;
int
error
;
if
((
error
=
table
->
file
->
extra
(
HA_EXTRA_NO_CACHE
)))
if
((
error
=
table
->
file
->
extra
(
HA_EXTRA_NO_CACHE
))
||
(
error
=
table
->
file
->
activate_all_index
(
thd
)))
{
{
table
->
file
->
print_error
(
error
,
MYF
(
0
));
table
->
file
->
print_error
(
error
,
MYF
(
0
));
::
send_error
(
&
thd
->
net
);
::
send_error
(
&
thd
->
net
);
...
...
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