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
dd83beb7
Commit
dd83beb7
authored
Jun 01, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --skip-symlinks
Don't force repair of tables that are not closed properly.
parent
683a46a3
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
167 additions
and
31 deletions
+167
-31
Docs/manual.texi
Docs/manual.texi
+149
-26
include/my_sys.h
include/my_sys.h
+1
-1
myisam/mi_check.c
myisam/mi_check.c
+5
-0
myisam/myisamchk.c
myisam/myisamchk.c
+1
-1
mysys/my_static.c
mysys/my_static.c
+1
-0
mysys/my_symlink2.c
mysys/my_symlink2.c
+4
-2
sql/mysqld.cc
sql/mysqld.cc
+6
-1
No files found.
Docs/manual.texi
View file @
dd83beb7
This diff is collapsed.
Click to expand it.
include/my_sys.h
View file @
dd83beb7
...
...
@@ -208,7 +208,7 @@ extern long lCurMemory,lMaxMemory; /* from safemalloc */
extern
ulong
my_default_record_cache_size
;
extern
my_bool
NEAR
my_disable_locking
,
NEAR
my_disable_async_io
,
NEAR
my_disable_flush_key_bloc
ks
;
NEAR
my_disable_flush_key_blocks
,
NEAR
my_disable_symlin
ks
;
extern
char
wild_many
,
wild_one
,
wild_prefix
;
extern
const
char
*
charsets_dir
;
extern
char
*
defaults_extra_file
;
...
...
myisam/mi_check.c
View file @
dd83beb7
...
...
@@ -110,9 +110,14 @@ int chk_status(MI_CHECK *param, register MI_INFO *info)
"Table is marked as crashed"
);
if
(
share
->
state
.
open_count
!=
(
uint
)
(
info
->
s
->
global_changed
?
1
:
0
))
{
/* Don't count this as a real warning, as check can correct this ! */
uint
save
=
param
->
warning_printed
;
mi_check_print_warning
(
param
,
"%d clients is using or hasn't closed the table properly"
,
share
->
state
.
open_count
);
/* If this will be fixed by the check, forget the warning */
if
(
param
->
testflag
&
T_UPDATE_STATE
)
param
->
warning_printed
=
save
;
}
return
0
;
}
...
...
myisam/myisamchk.c
View file @
dd83beb7
...
...
@@ -201,7 +201,7 @@ static struct option long_options[] =
static
void
print_version
(
void
)
{
printf
(
"%s Ver 1.4
5
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
printf
(
"%s Ver 1.4
6
for %s at %s
\n
"
,
my_progname
,
SYSTEM_TYPE
,
MACHINE_TYPE
);
}
...
...
mysys/my_static.c
View file @
dd83beb7
...
...
@@ -97,4 +97,5 @@ int (*fatal_error_handler_hook)(uint error,const char *str,myf MyFlags)=
my_bool
NEAR
my_disable_locking
=
0
;
my_bool
NEAR
my_disable_async_io
=
0
;
my_bool
NEAR
my_disable_flush_key_blocks
=
0
;
my_bool
NEAR
my_disable_symlinks
=
0
;
my_bool
NEAR
mysys_uses_curses
=
0
;
mysys/my_symlink2.c
View file @
dd83beb7
...
...
@@ -62,7 +62,8 @@ File my_create_with_symlink(const char *linkname, const char *filename,
int
my_delete_with_symlink
(
const
char
*
name
,
myf
MyFlags
)
{
char
link_name
[
FN_REFLEN
];
int
was_symlink
=
!
my_readlink
(
link_name
,
name
,
MYF
(
0
));
int
was_symlink
=
(
!
my_disable_symlinks
&&
!
my_readlink
(
link_name
,
name
,
MYF
(
0
)));
int
result
;
DBUG_ENTER
(
"my_delete_with_symlink"
);
...
...
@@ -90,7 +91,8 @@ int my_rename_with_symlink(const char *from, const char *to, myf MyFlags)
return
my_rename
(
from
,
to
,
MyFlags
);
#else
char
link_name
[
FN_REFLEN
],
tmp_name
[
FN_REFLEN
];
int
was_symlink
=
!
my_readlink
(
link_name
,
name
,
MYF
(
0
));
int
was_symlink
=
(
!
my_disable_symlinks
&&
!
my_readlink
(
link_name
,
name
,
MYF
(
0
)));
int
result
;
DBUG_ENTER
(
"my_rename_with_symlink"
);
...
...
sql/mysqld.cc
View file @
dd83beb7
...
...
@@ -2462,7 +2462,7 @@ enum options {
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_STACK_TRACE
,
OPT_SKIP_SYMLINKS
};
static
struct
option
long_options
[]
=
{
...
...
@@ -2588,6 +2588,7 @@ 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-symlinks"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_SYMLINKS
},
{
"skip-thread-priority"
,
no_argument
,
0
,
(
int
)
OPT_SKIP_PRIOR
},
{
"sql-bin-update-same"
,
no_argument
,
0
,
(
int
)
OPT_SQL_BIN_UPDATE_SAME
},
#include "sslopt-longopts.h"
...
...
@@ -3420,6 +3421,7 @@ static void get_options(int argc,char **argv)
myisam_delay_key_write
=
0
;
myisam_concurrent_insert
=
0
;
myisam_recover_options
=
HA_RECOVER_NONE
;
my_disable_symlinks
=
1
;
ha_open_options
&=
~
HA_OPEN_ABORT_IF_CRASHED
;
break
;
case
(
int
)
OPT_SAFE
:
...
...
@@ -3476,6 +3478,9 @@ static void get_options(int argc,char **argv)
case
(
int
)
OPT_SKIP_STACK_TRACE
:
test_flags
|=
TEST_NO_STACKTRACE
;
break
;
case
(
int
)
OPT_SKIP_SYMLINKS
:
my_disable_symlinks
=
1
;
break
;
case
(
int
)
OPT_BIND_ADDRESS
:
if
(
optarg
&&
isdigit
(
optarg
[
0
]))
{
...
...
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