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
479f494d
Commit
479f494d
authored
Oct 11, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
38a4648a
075a0fbd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
15 deletions
+39
-15
Docs/manual.texi
Docs/manual.texi
+1
-1
innobase/log/log0log.c
innobase/log/log0log.c
+1
-1
mysys/mf_sort.c
mysys/mf_sort.c
+1
-1
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+4
-2
sql-bench/test-insert.sh
sql-bench/test-insert.sh
+10
-4
sql/ha_innobase.cc
sql/ha_innobase.cc
+19
-4
tools/mysqlmanager.c
tools/mysqlmanager.c
+3
-2
No files found.
Docs/manual.texi
View file @
479f494d
...
...
@@ -4037,7 +4037,7 @@ If you set an @code{ENUM} column to an unsupported value, it will be set to
the error value 'empty string', with numeric value 0.
@item
If you set an @cod{SET} column to an unsupported value, the value will
If you set an @cod
e
{SET} column to an unsupported value, the value will
be ignored. @xref{Bugs}.
@end itemize
innobase/log/log0log.c
View file @
479f494d
...
...
@@ -1857,7 +1857,7 @@ log_group_archive(
os_file_t
file_handle
;
dulint
start_lsn
;
dulint
end_lsn
;
char
name
[
10
0
];
char
name
[
10
24
];
byte
*
buf
;
ulint
len
;
ibool
ret
;
...
...
mysys/mf_sort.c
View file @
479f494d
...
...
@@ -25,7 +25,7 @@ void my_string_ptr_sort(void *base, uint items, size_s size)
#if INT_MAX > 65536L
uchar
**
ptr
=
0
;
if
(
size
<=
20
&&
items
>=
1000
&&
if
(
size
<=
20
&&
items
>=
1000
&&
items
<
100000
&&
(
ptr
=
(
uchar
**
)
my_malloc
(
items
*
sizeof
(
char
*
),
MYF
(
0
))))
{
radixsort_for_str_ptr
((
uchar
**
)
base
,
items
,
size
,
ptr
);
...
...
scripts/make_binary_distribution.sh
View file @
479f494d
...
...
@@ -66,10 +66,12 @@ for i in extra/comp_err extra/replace extra/perror extra/resolveip \
myisam/myisampack sql/mysqld sql/mysqlbinlog
\
client/mysql sql/mysqld client/mysqlshow client/mysqlcheck
\
client/mysqladmin client/mysqldump client/mysqlimport client/mysqltest
\
tools/mysqlmanager
\
client/mysqlmanagerc client/mysqlmanager-pwgen
tools/mysqlmanager
\
client/.libs/mysql client/.libs/mysqlshow client/.libs/mysqladmin
\
client/.libs/mysqldump client/.libs/mysqlimport client/.libs/mysqltest
\
client/.libs/mysqlcheck tools/.libs/mysqlmanager
client/.libs/mysqlcheck
\
client/.libs/mysqlmanagerc client/libs/mysqlmanager-pwgen
\
tools/.libs/mysqlmanager
do
if
[
-f
$i
]
then
...
...
sql-bench/test-insert.sh
View file @
479f494d
...
...
@@ -917,13 +917,19 @@ print "Time for update_with_key (" . ($opt_loop_count*3) . "): " .
timestr
(
timediff
(
$end_time
,
$loop_time
)
,
"all"
)
.
"
\n
"
;
$loop_time
=
new Benchmark
;
for
(
$i
=
0
;
$i
<
$opt_loop_count
*
3
;
$i
+
=
3
)
$count
=
0
;
for
(
$i
=
1
;
$i
<
$opt_loop_count
*
3
;
$i
+
=
3
)
{
$sth
=
$dbh
->do
(
"update bench1 set dummy1='updated' where id=
$i
"
)
or die
$DBI
::errstr
;
$end_time
=
new Benchmark
;
last
if
(
$estimated
=
predict_query_time
(
$loop_time
,
$end_time
,
\$
i,
$tests
,
$opt_loop_count
))
;
}
$end_time
=
new Benchmark
;
print
"Time for update_with_key_prefix ("
.
(
$opt_loop_count
)
.
"): "
.
if
(
$estimated
)
{
print
"Estimated time"
;
}
else
{
print
"Time"
;
}
print
" for update_with_key_prefix ("
.
(
$opt_loop_count
)
.
"): "
.
timestr
(
timediff
(
$end_time
,
$loop_time
)
,
"all"
)
.
"
\n
"
;
print
"
\n
Testing update of all rows
\n
"
;
...
...
sql/ha_innobase.cc
View file @
479f494d
...
...
@@ -541,9 +541,24 @@ innobase_init(void)
{
int
err
;
bool
ret
;
char
current_lib
[
2
],
*
default_path
;
DBUG_ENTER
(
"innobase_init"
);
/*
When using the embedded server, the datadirectory is not
in the current directory.
*/
if
(
!
mysql_embedded
)
default_path
=
mysql_real_data_home
;
else
{
/* It's better to use current lib, to keep path's short */
current_lib
[
0
]
=
FN_CURLIB
;
current_lib
[
1
]
=
FN_LIBCHAR
;
default_path
=
current_lib
;
}
if
(
specialflag
&
SPECIAL_NO_PRIOR
)
{
srv_set_thread_priorities
=
FALSE
;
}
else
{
...
...
@@ -559,10 +574,10 @@ innobase_init(void)
MYF
(
MY_WME
));
srv_data_home
=
(
innobase_data_home_dir
?
innobase_data_home_dir
:
mysql_real_data_home
);
default_path
);
srv_logs_home
=
(
char
*
)
""
;
srv_arch_dir
=
(
innobase_log_arch_dir
?
innobase_log_arch_dir
:
mysql_real_data_home
);
default_path
);
ret
=
innobase_parse_data_file_paths_and_sizes
();
...
...
@@ -572,7 +587,7 @@ innobase_init(void)
}
if
(
!
innobase_log_group_home_dir
)
innobase_log_group_home_dir
=
mysql_real_data_home
;
innobase_log_group_home_dir
=
default_path
;
ret
=
innobase_parse_log_group_home_dirs
();
if
(
ret
==
FALSE
)
{
...
...
tools/mysqlmanager.c
View file @
479f494d
...
...
@@ -1543,10 +1543,11 @@ static struct manager_exec* manager_exec_new(char* arg_start,char* arg_end)
tmp
->
error
=
"Too few arguments"
;
return
tmp
;
}
tmp
->
data_buf
=
(
char
*
)
tmp
+
sizeof
(
*
tmp
);
/* We have to allocate 'args' first as this must be alligned */
tmp
->
args
=
(
char
**
)(
tmp
+
1
);
tmp
->
data_buf
=
(
char
*
)
(
tmp
->
args
+
num_args
);
memcpy
(
tmp
->
data_buf
,
arg_start
,
arg_len
);
tmp
->
data_buf_size
=
arg_len
;
tmp
->
args
=
(
char
**
)(
tmp
->
data_buf
+
arg_len
);
tmp
->
num_args
=
num_args
;
tmp
->
ident
=
tmp
->
data_buf
;
tmp
->
ident_len
=
strlen
(
tmp
->
ident
);
...
...
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