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
623f930a
Commit
623f930a
authored
Jul 03, 2012
by
Rohit Kalhans
Browse files
Options
Browse Files
Download
Plain Diff
upmerge from mysql-5.1 to mysql-5.5
parents
9f4f0699
176d6b1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
mysql-test/include/mysqlbinlog_have_debug.inc
mysql-test/include/mysqlbinlog_have_debug.inc
+34
-0
No files found.
mysql-test/include/mysqlbinlog_have_debug.inc
0 → 100644
View file @
623f930a
#############################################
# checks if mysqlbinlog is debug compiled
# this "cannot" be done simply by using
# have_debug.inc
#############################################
--
disable_query_log
--
let
$temp_out_help_file
=
$MYSQL_TMP_DIR
/
mysqlbinlog_help
.
tmp
--
exec
$MYSQL_BINLOG
--
help
>
$temp_out_help_file
let
log_tmp
=
$temp_out_help_file
;
--
let
$temp_inc
=
$MYSQL_TMP_DIR
/
temp
.
inc
let
inc_tmp
=
$temp_inc
;
--
perl
use
strict
;
my
$tmp_file
=
$ENV
{
'log_tmp'
}
or
die
"log_tmp not set"
;
open
(
FILE
,
"
$tmp_file
"
)
or
die
(
"Unable to open
$tmp_file
: $!
\n
"
);
my
$count
=
()
=
grep
(
/
Output
debug
log
/
g
,
<
FILE
>
);
close
FILE
;
my
$temp_inc
=
$ENV
{
'inc_tmp'
}
or
die
"temp_inc not set"
;
open
(
FILE_INC
,
">"
,
"
$temp_inc
"
)
or
die
(
"can't open file
\"
$temp_inc
\"
: $!"
);
print
FILE_INC
'--let $is_debug= '
.
$count
;
close
FILE_INC
;
EOF
--
source
$temp_inc
if
(
!
$is_debug
)
{
--
skip
mysqlbinlog
needs
to
be
debug
compiled
}
--
remove_file
$temp_out_help_file
--
remove_file
$temp_inc
--
enable_query_log
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