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
3a9e5901
Commit
3a9e5901
authored
May 14, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Disable file locking on FreeBSD
parent
a7177178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
innobase/os/os0file.c
innobase/os/os0file.c
+14
-5
No files found.
innobase/os/os0file.c
View file @
3a9e5901
...
...
@@ -369,7 +369,16 @@ os_file_handle_error(
return
(
FALSE
);
}
#if !defined(__WIN__) && !defined(UNIV_HOTBACKUP)
#undef USE_FILE_LOCK
#define USE_FILE_LOCK
#if defined(UNIV_HOTBACKUP) || defined(__WIN__) || defined(__FreeBSD__)
/* InnoDB Hot Backup does not lock the data files.
* On Windows, mandatory locking is used.
* On FreeBSD with LinuxThreads, advisory locking does not work properly.
*/
# undef USE_FILE_LOCK
#endif
#ifdef USE_FILE_LOCK
/********************************************************************
Obtain an exclusive lock on a file. */
static
...
...
@@ -393,7 +402,7 @@ os_file_lock(
}
return
0
;
}
#endif
/*
!defined(__WIN__) && !defined(UNIV_HOTBACKUP)
*/
#endif
/*
USE_FILE_LOCK
*/
/********************************************************************
Does error handling when a file operation fails. */
...
...
@@ -852,7 +861,7 @@ os_file_create_simple(
if
(
retry
)
{
goto
try_again
;
}
#if
ndef UNIV_HOTBACKUP
#if
def USE_FILE_LOCK
}
else
if
(
os_file_lock
(
file
,
name
))
{
*
success
=
FALSE
;
file
=
-
1
;
...
...
@@ -961,7 +970,7 @@ os_file_create_simple_no_error_handling(
if
(
file
==
-
1
)
{
*
success
=
FALSE
;
#if
ndef UNIV_HOTBACKUP
#if
def USE_FILE_LOCK
}
else
if
(
os_file_lock
(
file
,
name
))
{
*
success
=
FALSE
;
file
=
-
1
;
...
...
@@ -1172,7 +1181,7 @@ os_file_create(
if
(
retry
)
{
goto
try_again
;
}
#if
ndef UNIV_HOTBACKUP
#if
def USE_FILE_LOCK
}
else
if
(
os_file_lock
(
file
,
name
))
{
*
success
=
FALSE
;
file
=
-
1
;
...
...
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