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
fdb0e646
Commit
fdb0e646
authored
Mar 01, 2002
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into mysql.sashanet.com:/reiser-data/mysql-4.0
parents
863b5da0
40be5306
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
mysys/my_vsnprintf.c
mysys/my_vsnprintf.c
+6
-7
sql/log.cc
sql/log.cc
+2
-1
sql/slave.cc
sql/slave.cc
+1
-0
No files found.
mysys/my_vsnprintf.c
View file @
fdb0e646
...
...
@@ -39,7 +39,7 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
*
to
++=
*
fmt
;
/* Copy ordinary char */
continue
;
}
/* Skip
p
if max size is used (to be compatible with printf) */
/* Skip if max size is used (to be compatible with printf) */
fmt
++
;
while
(
isdigit
(
*
fmt
)
||
*
fmt
==
'.'
||
*
fmt
==
'-'
)
fmt
++
;
...
...
@@ -48,14 +48,13 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
if
(
*
fmt
==
's'
)
/* String parameter */
{
reg2
char
*
par
=
va_arg
(
ap
,
char
*
);
uint
plen
;
uint
plen
,
left_len
=
(
uint
)(
end
-
to
)
;
if
(
!
par
)
par
=
(
char
*
)
"(null)"
;
plen
=
(
uint
)
strlen
(
par
);
if
((
uint
)
(
end
-
to
)
>
plen
)
/* Replace if possible */
{
to
=
strmov
(
to
,
par
);
continue
;
}
if
(
left_len
<=
plen
)
plen
=
left_len
-
1
;
to
=
strmov
(
to
,
par
);
continue
;
}
else
if
(
*
fmt
==
'd'
||
*
fmt
==
'u'
)
/* Integer parameter */
{
...
...
sql/log.cc
View file @
fdb0e646
...
...
@@ -237,7 +237,8 @@ void MYSQL_LOG::open(const char *log_name, enum_log_type log_type_arg,
/*
Explanation of the boolean black magic:
if we are supposed to write magic number try write
clean up if failed
clean
up if failed
then if index_file has not been previously opened, try to open it
clean up if failed
*/
...
...
sql/slave.cc
View file @
fdb0e646
...
...
@@ -1762,6 +1762,7 @@ reconnect done to recover from failed read");
from master"
);
goto
err
;
}
flush_master_info
(
mi
);
// TODO: check debugging abort code
#ifndef DBUG_OFF
if
(
abort_slave_event_count
&&
!--
events_till_abort
)
...
...
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