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
5b766472
Commit
5b766472
authored
Jul 19, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fil0fil.c:
Align a buffer for i/o from a raw device
parent
d7f2152b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+6
-3
No files found.
innobase/fil/fil0fil.c
View file @
5b766472
...
...
@@ -573,17 +573,20 @@ fil_read_flushed_lsn_and_arch_log_no(
ulint
*
max_arch_log_no
)
/* in/out: */
{
byte
*
buf
;
byte
*
buf2
;
dulint
flushed_lsn
;
ulint
arch_log_no
;
buf
=
ut_malloc
(
UNIV_PAGE_SIZE
);
buf2
=
ut_malloc
(
2
*
UNIV_PAGE_SIZE
);
/* Align the memory for a possibel read from a raw device */
buf
=
ut_align
(
buf2
,
UNIV_PAGE_SIZE
);
os_file_read
(
data_file
,
buf
,
0
,
0
,
UNIV_PAGE_SIZE
);
flushed_lsn
=
mach_read_from_8
(
buf
+
FIL_PAGE_FILE_FLUSH_LSN
);
arch_log_no
=
mach_read_from_4
(
buf
+
FIL_PAGE_ARCH_LOG_NO
);
ut_free
(
buf
);
ut_free
(
buf
2
);
if
(
!
one_read_already
)
{
*
min_flushed_lsn
=
flushed_lsn
;
...
...
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