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
f4dc9215
Commit
f4dc9215
authored
Jul 10, 2012
by
Andrei Elkin
Browse files
Options
Browse Files
Download
Plain Diff
merge from 5.5 repo.
parents
aa103d02
88a74a16
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1495 additions
and
1435 deletions
+1495
-1435
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+12
-1
libmysqld/examples/CMakeLists.txt
libmysqld/examples/CMakeLists.txt
+1
-0
mysys/mf_iocache2.c
mysys/mf_iocache2.c
+5
-1
sql/log.cc
sql/log.cc
+4
-1
sql/log_event.cc
sql/log_event.cc
+19
-5
sql/rpl_utility.h
sql/rpl_utility.h
+1
-1
tests/mysql_client_fw.c
tests/mysql_client_fw.c
+1418
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+35
-1426
No files found.
client/mysqlbinlog.cc
View file @
f4dc9215
...
...
@@ -792,8 +792,11 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
goto
end
;
}
else
{
ce
->
print
(
result_file
,
print_event_info
,
TRUE
);
if
(
head
->
error
==
-
1
)
goto
err
;
}
// If this binlog is not 3.23 ; why this test??
if
(
glob_description_event
->
binlog_version
>=
3
)
{
...
...
@@ -844,6 +847,8 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
ce
->
print
(
result_file
,
print_event_info
,
TRUE
);
my_free
((
void
*
)
ce
->
fname
);
delete
ce
;
if
(
head
->
error
==
-
1
)
goto
err
;
}
else
warning
(
"Ignoring Execute_load_log_event as there is no "
...
...
@@ -904,6 +909,12 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
{
convert_path_to_forward_slashes
(
fname
);
exlq
->
print
(
result_file
,
print_event_info
,
fname
);
if
(
head
->
error
==
-
1
)
{
if
(
fname
)
my_free
(
fname
);
goto
err
;
}
}
else
warning
(
"Ignoring Execute_load_query since there is no "
...
...
libmysqld/examples/CMakeLists.txt
View file @
f4dc9215
...
...
@@ -16,6 +16,7 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/libmysqld/include
${
CMAKE_SOURCE_DIR
}
/regex
${
CMAKE_SOURCE_DIR
}
/tests
${
READLINE_INCLUDE_DIR
}
)
...
...
mysys/mf_iocache2.c
View file @
f4dc9215
...
...
@@ -433,7 +433,11 @@ size_t my_b_vprintf(IO_CACHE *info, const char* fmt, va_list args)
memset
(
buffz
,
'0'
,
minimum_width
-
length2
);
else
memset
(
buffz
,
' '
,
minimum_width
-
length2
);
my_b_write
(
info
,
buffz
,
minimum_width
-
length2
);
if
(
my_b_write
(
info
,
buffz
,
minimum_width
-
length2
))
{
my_afree
(
buffz
);
goto
err
;
}
my_afree
(
buffz
);
}
...
...
sql/log.cc
View file @
f4dc9215
...
...
@@ -2762,7 +2762,10 @@ bool MYSQL_QUERY_LOG::write(THD *thd, time_t current_time,
{
end
=
strxmov
(
buff
,
"# administrator command: "
,
NullS
);
buff_len
=
(
ulong
)
(
end
-
buff
);
my_b_write
(
&
log_file
,
(
uchar
*
)
buff
,
buff_len
);
DBUG_EXECUTE_IF
(
"simulate_slow_log_write_error"
,
{
DBUG_SET
(
"+d,simulate_file_write_error"
);});
if
(
my_b_write
(
&
log_file
,
(
uchar
*
)
buff
,
buff_len
))
tmp_errno
=
errno
;
}
if
(
my_b_write
(
&
log_file
,
(
uchar
*
)
sql_text
,
sql_text_len
)
||
my_b_write
(
&
log_file
,
(
uchar
*
)
";
\n
"
,
2
)
||
...
...
sql/log_event.cc
View file @
f4dc9215
...
...
@@ -6478,6 +6478,13 @@ void Create_file_log_event::print(FILE* file, PRINT_EVENT_INFO* print_event_info
{
Load_log_event
::
print
(
file
,
print_event_info
,
!
check_fname_outside_temp_buf
());
/**
reduce the size of io cache so that the write function is called
for every call to my_b_printf().
*/
DBUG_EXECUTE_IF
(
"simulate_create_event_write_error"
,
{(
&
cache
)
->
write_pos
=
(
&
cache
)
->
write_end
;
DBUG_SET
(
"+d,simulate_file_write_error"
);});
/*
That one is for "file_id: etc" below: in mysqlbinlog we want the #, in
SHOW BINLOG EVENTS we don't.
...
...
@@ -7169,6 +7176,13 @@ void Execute_load_query_log_event::print(FILE* file,
Write_on_release_cache
cache
(
&
print_event_info
->
head_cache
,
file
);
print_query_header
(
&
cache
,
print_event_info
);
/**
reduce the size of io cache so that the write function is called
for every call to my_b_printf().
*/
DBUG_EXECUTE_IF
(
"simulate_execute_event_write_error"
,
{(
&
cache
)
->
write_pos
=
(
&
cache
)
->
write_end
;
DBUG_SET
(
"+d,simulate_file_write_error"
);});
if
(
local_fname
)
{
...
...
sql/rpl_utility.h
View file @
f4dc9215
...
...
@@ -271,7 +271,7 @@ class Deferred_log_events
public:
Deferred_log_events
(
Relay_log_info
*
rli
);
~
Deferred_log_events
();
/* queue for exection at Query-log-event time prior the Query */
;
/* queue for exection at Query-log-event time prior the Query */
int
add
(
Log_event
*
ev
);
bool
is_empty
();
bool
execute
(
Relay_log_info
*
rli
);
...
...
tests/mysql_client_fw.c
0 → 100644
View file @
f4dc9215
This diff is collapsed.
Click to expand it.
tests/mysql_client_test.c
View file @
f4dc9215
This diff is collapsed.
Click to expand it.
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