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
8f499c39
Commit
8f499c39
authored
Apr 24, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: debug assert crash when seek on log file fails
parent
5fd00883
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
sql/log.cc
sql/log.cc
+9
-5
No files found.
sql/log.cc
View file @
8f499c39
...
...
@@ -2359,6 +2359,7 @@ bool MYSQL_LOG::open(
char
buff
[
FN_REFLEN
];
MY_STAT
f_stat
;
File
file
=
-
1
;
my_off_t
seek_offset
;
int
open_flags
=
O_CREAT
|
O_BINARY
;
DBUG_ENTER
(
"MYSQL_LOG::open"
);
DBUG_PRINT
(
"enter"
,
(
"log_type: %d"
,
(
int
)
log_type_arg
));
...
...
@@ -2391,11 +2392,14 @@ bool MYSQL_LOG::open(
m_log_file_key
=
log_file_key
;
#endif
if
((
file
=
mysql_file_open
(
log_file_key
,
log_file_name
,
open_flags
,
MYF
(
MY_WME
|
ME_WAITTANG
)))
<
0
||
init_io_cache
(
&
log_file
,
file
,
IO_SIZE
,
io_cache_type
,
mysql_file_tell
(
file
,
MYF
(
MY_WME
)),
0
,
if
((
file
=
mysql_file_open
(
log_file_key
,
log_file_name
,
open_flags
,
MYF
(
MY_WME
|
ME_WAITTANG
)))
<
0
)
goto
err
;
if
((
seek_offset
=
mysql_file_tell
(
file
,
MYF
(
MY_WME
))))
goto
err
;
if
(
init_io_cache
(
&
log_file
,
file
,
IO_SIZE
,
io_cache_type
,
seek_offset
,
0
,
MYF
(
MY_WME
|
MY_NABP
|
((
log_type
==
LOG_BIN
)
?
MY_WAIT_IF_FULL
:
0
))))
goto
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