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
0f37b124
Commit
0f37b124
authored
Apr 21, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed portability problems in mysqlcheck
parent
c8fbe938
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
Docs/manual.texi
Docs/manual.texi
+2
-0
client/mysqlcheck.c
client/mysqlcheck.c
+3
-4
mysql-test/r/backup.result
mysql-test/r/backup.result
+1
-1
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+1
-0
sql/opt_range.cc
sql/opt_range.cc
+3
-1
No files found.
Docs/manual.texi
View file @
0f37b124
...
...
@@ -49219,6 +49219,8 @@ Add @code{record_in_range()} method to @code{MERGE} tables to be
able to choose the right index when there is many to choose from. We should
also extend the info interface to get the key distribution for each index,
of @code{analyze} is run on all sub tables.
@item
@code{SET SQL_DEFAULT_TABLE_TYPE=[MyISAM | INNODB | BDB | GEMINI | HEAP]}.
@end itemize
@node TODO future, TODO sometime, TODO MySQL 4.0, TODO
client/mysqlcheck.c
View file @
0f37b124
...
...
@@ -158,8 +158,8 @@ static void usage(void)
-f, --force Continue even if we get an sql-error.
\n
\
-e, --extended If you are using this option with CHECK TABLE,
\n
\
it will ensure that the table is 100 percent
\n
\
consistent, but will take a long time.
\n
\
consistent, but will take a long time.
\n\
n
"
);
printf
(
"\
If you are using this option with REPAIR TABLE,
\n
\
it will run an extended repair on the table, which
\n
\
may not only take a long time to execute, but
\n
\
...
...
@@ -177,8 +177,7 @@ static void usage(void)
-P, --port=... Port number to use for connection.
\n
\
-q, --quick If you are using this option with CHECK TABLE, it
\n
\
prevents the check from scanning the rows to check
\n
\
for wrong links. This is the fastest check.
\n
\
for wrong links. This is the fastest check.
\n\n
\
If you are using this option with REPAIR TABLE, it
\n
\
will try to repair only the index tree. This is
\n
\
the fastest repair method for a table.
\n
\
...
...
mysql-test/r/backup.result
View file @
0f37b124
Table Op Msg_type Msg_text
t1 backup error Failed copying .frm file: errno = X
t
est.t
1 backup error Failed copying .frm file: errno = X
test.t1 backup status Operation failed
Table Op Msg_type Msg_text
test.t1 backup status OK
...
...
sql/ha_berkeley.cc
View file @
0f37b124
...
...
@@ -571,6 +571,7 @@ int ha_berkeley::open(const char *name, int mode, uint test_if_locked)
transaction
=
0
;
cursor
=
0
;
key_read
=
0
;
block_size
=
8192
;
// Berkeley DB block size
share
->
fixed_length_row
=!
(
table
->
db_create_options
&
HA_OPTION_PACK_RECORD
);
get_status
();
...
...
sql/opt_range.cc
View file @
0f37b124
...
...
@@ -697,7 +697,9 @@ int SQL_SELECT::test_quick_select(key_map keys_to_use, table_map prev_tables,
** and that all key blocks are half full (normally things are
** much better)
*/
uint
keys_per_block
=
head
->
file
->
block_size
/
2
/
head
->
key_info
[
param
.
real_keynr
[
idx
]].
key_length
+
1
;
uint
keys_per_block
=
head
->
file
->
block_size
/
2
/
(
head
->
key_info
[
param
.
real_keynr
[
idx
]].
key_length
+
head
->
file
->
ref_length
)
+
1
;
found_read_time
=
((
double
)
(
found_records
+
keys_per_block
-
1
)
/
(
double
)
keys_per_block
);
}
...
...
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