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
bc46f1a7
Commit
bc46f1a7
authored
Jan 25, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove SEARCH_TYPE from search_pattern_in_file.inc
parent
424210ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
mysql-test/include/search_pattern_in_file.inc
mysql-test/include/search_pattern_in_file.inc
+1
-12
mysql-test/suite/binlog/include/print_optional_metadata.inc
mysql-test/suite/binlog/include/print_optional_metadata.inc
+1
-2
No files found.
mysql-test/include/search_pattern_in_file.inc
View file @
bc46f1a7
...
...
@@ -9,9 +9,6 @@
#
# The environment variables SEARCH_FILE and SEARCH_PATTERN must be set
# before sourcing this routine.
# SEARCH_TYPE can also be set to either NULL(default) or _gm_
# NULL is equivalent of using m/SEARCH_PATTERN/gs
# _gm_ is equivalent of using m/SEARCH_RANGE/gm
#
# Optionally, SEARCH_RANGE can be set to the max number of bytes of the file
# to search. If negative, it will search that many bytes at the end of the
...
...
@@ -83,15 +80,7 @@ perl;
close
(
FILE
);
$content
.=
$file_content
;
}
my
@
matches
;
if
(
not
defined
(
$ENV
{
SEARCH_TYPE
}))
{
@
matches
=
(
$content
=~
/
$search_pattern
/
gs
);
}
elsif
(
$ENV
{
SEARCH_TYPE
}
==
"_gm_"
)
{
@
matches
=
(
$content
=~
/
$search_pattern
/
gm
);
}
my
@
matches
=
(
$content
=~
/
$search_pattern
/
gs
);
my
$res
;
if
(
@
matches
)
{
...
...
mysql-test/suite/binlog/include/print_optional_metadata.inc
View file @
bc46f1a7
...
...
@@ -16,10 +16,9 @@ if ($stop_position)
--
exec
$MYSQL_BINLOG
-
F
--
print
-
table
-
metadata
$_stop_position_opt
$binlog_file
>
$output_file
--
let
SEARCH_PATTERN
=
# (?:Columns\(| {8}).*
--
let
SEARCH_PATTERN
=
(
?
m
-
s
:
# (?:Columns\(| {8}).*)
--
let
SEARCH_FILE
=
$output_file
--
let
SEARCH_OUTPUT
=
matches
--
let
SEARCH_TYPE
=
"_gm_"
--
source
include
/
search_pattern_in_file
.
inc
if
(
$print_primary_key
)
...
...
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