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
f458432f
Commit
f458432f
authored
Aug 10, 2010
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 5.1 to get in critical bug fix that caused Aria tests to fail
parents
06a45722
8312aa9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysys/my_sync.c
mysys/my_sync.c
+2
-0
storage/maria/ma_write.c
storage/maria/ma_write.c
+2
-4
No files found.
mysys/my_sync.c
View file @
f458432f
...
...
@@ -68,6 +68,8 @@ int my_sync(File fd, myf my_flags)
res
=
fdatasync
(
fd
);
#elif defined(HAVE_FSYNC)
res
=
fsync
(
fd
);
if
(
res
==
-
1
and
errno
==
ENOLCK
)
res
=
0
;
/* Result Bug in Old FreeBSD */
#elif defined(__WIN__)
res
=
_commit
(
fd
);
#else
...
...
storage/maria/ma_write.c
View file @
f458432f
...
...
@@ -1914,7 +1914,6 @@ my_bool _ma_log_change(MARIA_PAGE *ma_page, const uchar *key_pos, uint length,
uchar
log_data
[
FILEID_STORE_SIZE
+
PAGE_STORE_SIZE
+
2
+
6
+
7
],
*
log_pos
;
LEX_CUSTRING
log_array
[
TRANSLOG_INTERNAL_PARTS
+
3
];
uint
offset
=
(
uint
)
(
key_pos
-
ma_page
->
buff
),
translog_parts
;
uint
extra_length
=
0
;
my_off_t
page
;
MARIA_HA
*
info
=
ma_page
->
info
;
DBUG_ENTER
(
"_ma_log_change"
);
...
...
@@ -1956,15 +1955,14 @@ my_bool _ma_log_change(MARIA_PAGE *ma_page, const uchar *key_pos, uint length,
int4store
(
log_pos
+
3
,
crc
);
log_array
[
TRANSLOG_INTERNAL_PARTS
+
translog_parts
].
str
=
log_pos
;
log_array
[
TRANSLOG_INTERNAL_PARTS
+
translog_parts
].
length
=
7
;
extra_length
+=
7
;
log_pos
+=
7
;
translog_parts
++
;
}
#endif
if
(
translog_write_record
(
&
lsn
,
LOGREC_REDO_INDEX
,
info
->
trn
,
info
,
(
translog_size_t
)
(
sizeof
(
log_data
)
-
7
+
length
+
extra_length
),
(
translog_size_t
)
(
log_pos
-
log_data
)
+
length
,
TRANSLOG_INTERNAL_PARTS
+
translog_parts
,
log_array
,
log_data
,
NULL
))
DBUG_RETURN
(
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