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
77ee990b
Commit
77ee990b
authored
Sep 15, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanups
parent
6f767647
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
29 deletions
+31
-29
.bzrignore
.bzrignore
+1
-0
Docs/manual.texi
Docs/manual.texi
+0
-5
isam/isamchk.c
isam/isamchk.c
+4
-4
myisam/mi_check.c
myisam/mi_check.c
+1
-1
myisam/myisamchk.c
myisam/myisamchk.c
+2
-2
myisam/myisamdef.h
myisam/myisamdef.h
+1
-1
sql/log_event.cc
sql/log_event.cc
+4
-1
sql/mysqld.cc
sql/mysqld.cc
+18
-15
No files found.
.bzrignore
View file @
77ee990b
...
...
@@ -400,3 +400,4 @@ vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
tools/mysqlmanager
vio/test-ssl
Docs/manual.texi
View file @
77ee990b
...
...
@@ -42382,11 +42382,6 @@ interface that is based on msqltcl 1.50.
The MySQL @uref{http://www.mysql.com/Downloads/Contrib/,Contrib directory}
contains an Eiffel wrapper written by Michael Ravits.
You can also find this at:
@url{http://www.netpedia.net/hosting/newplayer/}
@node Extending MySQL, Problems, Clients, Top
@chapter Extending MySQL
isam/isamchk.c
View file @
77ee990b
...
...
@@ -62,7 +62,7 @@ SET_STACK_SIZE(9000) /* Minimum stack size for program */
#define MIN_SORT_BUFFER (4096-MALLOC_OVERHEAD)
#endif
#define NE
A
D_MEM ((uint) 10*4*(IO_SIZE+32)+32)
/* Nead for recursion */
#define NE
E
D_MEM ((uint) 10*4*(IO_SIZE+32)+32)
/* Nead for recursion */
#define MAXERR 20
#define BUFFERS_WHEN_SORTING 16
/* Alloc for sort-key-tree */
#define WRITE_COUNT MY_HOW_OFTEN_TO_WRITE
...
...
@@ -512,7 +512,7 @@ static int nisamchk(my_string filename)
if
(
!
rep_quick
)
{
if
(
testflag
&
T_EXTEND
)
VOID
(
init_key_cache
(
use_buffers
,(
uint
)
NE
A
D_MEM
));
VOID
(
init_key_cache
(
use_buffers
,(
uint
)
NE
E
D_MEM
));
VOID
(
init_io_cache
(
&
read_cache
,
datafile
,(
uint
)
read_buffer_length
,
READ_CACHE
,
share
->
pack
.
header_length
,
1
,
MYF
(
MY_WME
)));
...
...
@@ -1473,7 +1473,7 @@ my_string name;
printf
(
"Data records: %lu
\n
"
,(
ulong
)
share
->
state
.
records
);
}
VOID
(
init_key_cache
(
use_buffers
,
NE
A
D_MEM
));
VOID
(
init_key_cache
(
use_buffers
,
NE
E
D_MEM
));
if
(
init_io_cache
(
&
read_cache
,
info
->
dfile
,(
uint
)
read_buffer_length
,
READ_CACHE
,
share
->
pack
.
header_length
,
1
,
MYF
(
MY_WME
)))
goto
err
;
...
...
@@ -1950,7 +1950,7 @@ int write_info;
if
(
share
->
state
.
key_root
[
sort_key
]
==
NI_POS_ERROR
)
DBUG_RETURN
(
0
);
/* Nothing to do */
init_key_cache
(
use_buffers
,
NE
A
D_MEM
);
init_key_cache
(
use_buffers
,
NE
E
D_MEM
);
if
(
init_io_cache
(
&
info
->
rec_cache
,
-
1
,(
uint
)
write_buffer_length
,
WRITE_CACHE
,
share
->
pack
.
header_length
,
1
,
MYF
(
MY_WME
|
MY_WAIT_IF_FULL
)))
...
...
myisam/mi_check.c
View file @
77ee990b
...
...
@@ -1130,7 +1130,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
}
if
(
!
param
->
using_global_keycache
)
VOID
(
init_key_cache
(
param
->
use_buffers
,
NE
A
D_MEM
));
VOID
(
init_key_cache
(
param
->
use_buffers
,
NE
E
D_MEM
));
if
(
init_io_cache
(
&
param
->
read_cache
,
info
->
dfile
,
(
uint
)
param
->
read_buffer_length
,
...
...
myisam/myisamchk.c
View file @
77ee990b
...
...
@@ -778,7 +778,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
!
(
param
->
testflag
&
(
T_FAST
|
T_FORCE_CREATE
)))
{
if
(
param
->
testflag
&
(
T_EXTEND
|
T_MEDIUM
))
VOID
(
init_key_cache
(
param
->
use_buffers
,(
uint
)
NE
A
D_MEM
));
VOID
(
init_key_cache
(
param
->
use_buffers
,(
uint
)
NE
E
D_MEM
));
VOID
(
init_io_cache
(
&
param
->
read_cache
,
datafile
,
(
uint
)
param
->
read_buffer_length
,
READ_CACHE
,
...
...
@@ -1185,7 +1185,7 @@ static int mi_sort_records(MI_CHECK *param,
if
(
share
->
state
.
key_root
[
sort_key
]
==
HA_OFFSET_ERROR
)
DBUG_RETURN
(
0
);
/* Nothing to do */
init_key_cache
(
param
->
use_buffers
,
NE
A
D_MEM
);
init_key_cache
(
param
->
use_buffers
,
NE
E
D_MEM
);
if
(
init_io_cache
(
&
info
->
rec_cache
,
-
1
,(
uint
)
param
->
write_buffer_length
,
WRITE_CACHE
,
share
->
pack
.
header_length
,
1
,
MYF
(
MY_WME
|
MY_WAIT_IF_FULL
)))
...
...
myisam/myisamdef.h
View file @
77ee990b
...
...
@@ -563,7 +563,7 @@ typedef struct st_mi_block_info { /* Parameter to _mi_get_block_info */
#define BLOCK_SYNC_ERROR 16
/* Right data at wrong place */
#define BLOCK_FATAL_ERROR 32
/* hardware-error */
#define NE
A
D_MEM ((uint) 10*4*(IO_SIZE+32)+32)
/* Nead for recursion */
#define NE
E
D_MEM ((uint) 10*4*(IO_SIZE+32)+32)
/* Nead for recursion */
#define MAXERR 20
#define BUFFERS_WHEN_SORTING 16
/* Alloc for sort-key-tree */
#define WRITE_COUNT MY_HOW_OFTEN_TO_WRITE
...
...
sql/log_event.cc
View file @
77ee990b
...
...
@@ -548,7 +548,10 @@ void Log_event::print_header(FILE* file)
void
Log_event
::
print_timestamp
(
FILE
*
file
,
time_t
*
ts
)
{
struct
tm
tm_tmp
,
*
res
;
#ifdef MYSQL_SERVER
struct
tm
tm_tmp
;
#endif
struct
tm
*
res
;
if
(
!
ts
)
{
ts
=
&
when
;
...
...
sql/mysqld.cc
View file @
77ee990b
...
...
@@ -2597,15 +2597,17 @@ enum options {
OPT_INNODB_FLUSH_METHOD
,
OPT_SAFE_SHOW_DB
,
OPT_GEMINI_SKIP
,
OPT_INNODB_SKIP
,
OPT_TEMP_POOL
,
OPT_
DO_PSTACK
,
OPT_
TX_ISOLATION
,
OPT_TEMP_POOL
,
OPT_TX_ISOLATION
,
OPT_GEMINI_FLUSH_LOG
,
OPT_GEMINI_RECOVER
,
OPT_GEMINI_UNBUFFERED_IO
,
OPT_SKIP_SAFEMALLOC
,
OPT_SKIP_STACK_TRACE
,
OPT_SKIP_SYMLINK
,
OPT_REPORT_HOST
,
OPT_REPORT_USER
,
OPT_REPORT_PASSWORD
,
OPT_REPORT_PORT
,
OPT_SKIP_STACK_TRACE
,
OPT_SKIP_SYMLINKS
,
OPT_MAX_BINLOG_DUMP_EVENTS
,
OPT_SPORADIC_BINLOG_DUMP_FAIL
,
OPT_SAFE_USER_CREATE
,
OPT_SQL_MODE
,
OPT_DO_PSTACK
,
OPT_REPORT_HOST
,
OPT_REPORT_USER
,
OPT_REPORT_PASSWORD
,
OPT_REPORT_PORT
,
OPT_SHOW_SLAVE_AUTH_INFO
,
OPT_OLD_RPL_COMPAT
,
OPT_S
QL_MODE
,
OPT_SAFE_USER_CREATE
,
OPT_SLAVE_LOAD_TMPDIR
,
OPT_NO_MIX_TYPE
};
OPT_S
LAVE_LOAD_TMPDIR
,
OPT_NO_MIX_TYPE
};
static
struct
option
long_options
[]
=
{
{
"ansi"
,
no_argument
,
0
,
'a'
},
...
...
@@ -2703,10 +2705,10 @@ static struct option long_options[] = {
OPT_SAFEMALLOC_MEM_LIMIT
},
{
"new"
,
no_argument
,
0
,
'n'
},
#ifdef NOT_YET
{
"no-mix-table-types"
,
no_argument
,
0
,
(
int
)
OPT_NO_MIX_TYPE
},
{
"no-mix-table-types"
,
no_argument
,
0
,
(
int
)
OPT_NO_MIX_TYPE
},
#endif
{
"old-protocol"
,
no_argument
,
0
,
'o'
},
{
"old-rpl-compat"
,
no_argument
,
0
,
(
int
)
OPT_OLD_RPL_COMPAT
},
{
"old-rpl-compat"
,
no_argument
,
0
,
(
int
)
OPT_OLD_RPL_COMPAT
},
#ifdef ONE_THREAD
{
"one-thread"
,
no_argument
,
0
,
(
int
)
OPT_ONE_THREAD
},
#endif
...
...
@@ -2733,7 +2735,7 @@ static struct option long_options[] = {
{
"report-port"
,
required_argument
,
0
,
(
int
)
OPT_REPORT_PORT
},
{
"safe-mode"
,
no_argument
,
0
,
(
int
)
OPT_SAFE
},
{
"safe-show-database"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_SHOW_DB
},
{
"s
ocket"
,
required_argument
,
0
,
(
int
)
OPT_SOCKET
},
{
"s
afe-user-create"
,
no_argument
,
0
,
(
int
)
OPT_SAFE_USER_CREATE
},
{
"server-id"
,
required_argument
,
0
,
(
int
)
OPT_SERVER_ID
},
{
"set-variable"
,
required_argument
,
0
,
'O'
},
{
"show-slave-auth-info"
,
no_argument
,
0
,
...
...
@@ -2753,9 +2755,10 @@ static struct option long_options[] = {
{
"skip-show-database"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_SHOW_DB
},
{
"skip-slave-start"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_SLAVE_START
},
{
"skip-stack-trace"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_STACK_TRACE
},
{
"skip-symlink"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_SYMLINK
},
{
"skip-symlink"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_SYMLINK
S
},
{
"skip-thread-priority"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_PRIOR
},
{
"slave-load-tmpdir"
,
required_argument
,
0
,
(
int
)
OPT_SLAVE_LOAD_TMPDIR
},
{
"socket"
,
required_argument
,
0
,
(
int
)
OPT_SOCKET
},
{
"sql-bin-update-same"
,
no_argument
,
0
,
(
int
)
OPT_SQL_BIN_UPDATE_SAME
},
{
"sql-mode"
,
required_argument
,
0
,
(
int
)
OPT_SQL_MODE
},
#include "sslopt-longopts.h"
...
...
@@ -3014,8 +3017,8 @@ struct show_var_st init_vars[]= {
{
"myisam_max_extra_sort_file_size"
,
(
char
*
)
&
myisam_max_extra_sort_file_size
,
SHOW_LONG
},
{
"myisam_max_sort_file_size"
,(
char
*
)
&
myisam_max_sort_file_size
,
SHOW_LONG
},
{
"myisam_sort_buffer_size"
,
(
char
*
)
&
myisam_sort_buffer_size
,
SHOW_LONG
},
{
"myisam_recover_options"
,
(
char
*
)
&
myisam_recover_options_str
,
SHOW_CHAR_PTR
},
{
"myisam_sort_buffer_size"
,
(
char
*
)
&
myisam_sort_buffer_size
,
SHOW_LONG
},
{
"net_buffer_length"
,
(
char
*
)
&
net_buffer_length
,
SHOW_LONG
},
{
"net_read_timeout"
,
(
char
*
)
&
net_read_timeout
,
SHOW_LONG
},
{
"net_retry_count"
,
(
char
*
)
&
mysqld_net_retry_count
,
SHOW_LONG
},
...
...
@@ -3710,7 +3713,7 @@ static void get_options(int argc,char **argv)
case
(
int
)
OPT_SKIP_STACK_TRACE
:
test_flags
|=
TEST_NO_STACKTRACE
;
break
;
case
(
int
)
OPT_SKIP_SYMLINK
:
case
(
int
)
OPT_SKIP_SYMLINK
S
:
my_disable_symlinks
=
1
;
my_use_symdir
=
0
;
have_symlink
=
SHOW_OPTION_DISABLED
;
...
...
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