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
6ba4c687
Commit
6ba4c687
authored
May 18, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srv0start.c:
Better instructions for the user if adding of new ibdata files fails
parent
526bb7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
innobase/srv/srv0start.c
innobase/srv/srv0start.c
+23
-10
No files found.
innobase/srv/srv0start.c
View file @
6ba4c687
...
...
@@ -161,13 +161,13 @@ srv_parse_data_file_paths_and_sizes(
}
if
(
strlen
(
str
)
>=
ut_strlen
(
":autoextend"
)
&&
0
==
ut_memcmp
(
str
,
":autoextend"
,
&&
0
==
ut_memcmp
(
str
,
(
char
*
)
":autoextend"
,
ut_strlen
(
":autoextend"
)))
{
str
+=
ut_strlen
(
":autoextend"
);
if
(
strlen
(
str
)
>=
ut_strlen
(
":max:"
)
&&
0
==
ut_memcmp
(
str
,
":max:"
,
&&
0
==
ut_memcmp
(
str
,
(
char
*
)
":max:"
,
ut_strlen
(
":max:"
)))
{
str
+=
ut_strlen
(
":max:"
);
...
...
@@ -265,7 +265,7 @@ srv_parse_data_file_paths_and_sizes(
(
*
data_file_sizes
)[
i
]
=
size
;
if
(
strlen
(
str
)
>=
ut_strlen
(
":autoextend"
)
&&
0
==
ut_memcmp
(
str
,
":autoextend"
,
&&
0
==
ut_memcmp
(
str
,
(
char
*
)
":autoextend"
,
ut_strlen
(
":autoextend"
)))
{
*
is_auto_extending
=
TRUE
;
...
...
@@ -273,7 +273,7 @@ srv_parse_data_file_paths_and_sizes(
str
+=
ut_strlen
(
":autoextend"
);
if
(
strlen
(
str
)
>=
ut_strlen
(
":max:"
)
&&
0
==
ut_memcmp
(
str
,
":max:"
,
&&
0
==
ut_memcmp
(
str
,
(
char
*
)
":max:"
,
ut_strlen
(
":max:"
)))
{
str
+=
ut_strlen
(
":max:"
);
...
...
@@ -864,6 +864,7 @@ open_or_create_data_files(
return
(
DB_SUCCESS
);
}
#ifdef notdefined
/*********************************************************************
This thread is used to measure contention of latches. */
static
...
...
@@ -935,6 +936,7 @@ test_measure_cont(
return
(
0
);
}
#endif
/********************************************************************
Starts InnoDB and creates a new database if database files
...
...
@@ -1036,20 +1038,24 @@ innobase_start_or_create_for_mysql(void)
srv_win_file_flush_method
=
SRV_WIN_IO_UNBUFFERED
;
#ifndef __WIN__
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
"fdatasync"
))
{
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
(
char
*
)
"fdatasync"
))
{
srv_unix_file_flush_method
=
SRV_UNIX_FDATASYNC
;
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
"O_DSYNC"
))
{
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
(
char
*
)
"O_DSYNC"
))
{
srv_unix_file_flush_method
=
SRV_UNIX_O_DSYNC
;
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
"littlesync"
))
{
(
char
*
)
"littlesync"
))
{
srv_unix_file_flush_method
=
SRV_UNIX_LITTLESYNC
;
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
"nosync"
))
{
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
(
char
*
)
"nosync"
))
{
srv_unix_file_flush_method
=
SRV_UNIX_NOSYNC
;
#else
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
"normal"
))
{
}
else
if
(
0
==
ut_strcmp
(
srv_file_flush_method_str
,
(
char
*
)
"normal"
))
{
srv_win_file_flush_method
=
SRV_WIN_IO_NORMAL
;
os_aio_use_native_aio
=
FALSE
;
...
...
@@ -1157,7 +1163,14 @@ innobase_start_or_create_for_mysql(void)
&
max_flushed_lsn
,
&
max_arch_log_no
,
&
sum_of_new_sizes
);
if
(
err
!=
DB_SUCCESS
)
{
fprintf
(
stderr
,
"InnoDB: Could not open data files
\n
"
);
fprintf
(
stderr
,
"InnoDB: Could not open or create data files.
\n
"
"InnoDB: If you tried to add new data files, and it failed here,
\n
"
"InnoDB: you should now edit innodb_data_file_path in my.cnf back
\n
"
"InnoDB: to what it was, and remove the new ibdata files InnoDB created
\n
"
"InnoDB: in this failed attempt. InnoDB only wrote those files full of
\n
"
"InnoDB: zeros, but did not yet use them in any way. But be careful: do not
\n
"
"InnoDB: remove old data files which contain your precious data!
\n
"
);
return
((
int
)
err
);
}
...
...
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