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
b14d7434
Commit
b14d7434
authored
Sep 24, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Fix warnings and errors when UNIV_HOTBACKUP is defined.
parent
a5b85df5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
fsp/fsp0fsp.c
fsp/fsp0fsp.c
+1
-1
os/os0file.c
os/os0file.c
+8
-0
No files found.
fsp/fsp0fsp.c
View file @
b14d7434
...
...
@@ -231,10 +231,10 @@ the extent are free and which contain old tuple version to clean. */
/* Offset of the descriptor array on a descriptor page */
#define XDES_ARR_OFFSET (FSP_HEADER_OFFSET + FSP_HEADER_SIZE)
#ifndef UNIV_HOTBACKUP
/* Flag to indicate if we have printed the tablespace full error. */
static
ibool
fsp_tbs_full_error_printed
=
FALSE
;
#ifndef UNIV_HOTBACKUP
/**********************************************************************//**
Returns an extent to the free list of a space. */
static
...
...
os/os0file.c
View file @
b14d7434
...
...
@@ -2032,7 +2032,9 @@ os_file_pread(
offset */
{
off_t
offs
;
#if defined(HAVE_PREAD) && !defined(HAVE_BROKEN_PREAD)
ssize_t
n_bytes
;
#endif
/* HAVE_PREAD && !HAVE_BROKEN_PREAD */
ut_a
((
offset
&
0xFFFFFFFFUL
)
==
offset
);
...
...
@@ -2071,16 +2073,20 @@ os_file_pread(
{
off_t
ret_offset
;
ssize_t
ret
;
#ifndef UNIV_HOTBACKUP
ulint
i
;
#endif
/* !UNIV_HOTBACKUP */
os_mutex_enter
(
os_file_count_mutex
);
os_n_pending_reads
++
;
os_mutex_exit
(
os_file_count_mutex
);
#ifndef UNIV_HOTBACKUP
/* Protect the seek / read operation with a mutex */
i
=
((
ulint
)
file
)
%
OS_FILE_N_SEEK_MUTEXES
;
os_mutex_enter
(
os_file_seek_mutexes
[
i
]);
#endif
/* !UNIV_HOTBACKUP */
ret_offset
=
lseek
(
file
,
offs
,
SEEK_SET
);
...
...
@@ -2090,7 +2096,9 @@ os_file_pread(
ret
=
read
(
file
,
buf
,
(
ssize_t
)
n
);
}
#ifndef UNIV_HOTBACKUP
os_mutex_exit
(
os_file_seek_mutexes
[
i
]);
#endif
/* !UNIV_HOTBACKUP */
os_mutex_enter
(
os_file_count_mutex
);
os_n_pending_reads
--
;
...
...
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