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
85ddd9e8
Commit
85ddd9e8
authored
Mar 17, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert pull request #640 from grooverdan/10.3-MDEV-8743-wsrep_sst_common-close-fds
parent
c231a228
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
scripts/wsrep_sst_common.sh
scripts/wsrep_sst_common.sh
+0
-22
No files found.
scripts/wsrep_sst_common.sh
View file @
85ddd9e8
...
@@ -16,28 +16,6 @@
...
@@ -16,28 +16,6 @@
# This is a common command line parser to be sourced by other SST scripts
# This is a common command line parser to be sourced by other SST scripts
# Close file descriptors numbered above 2 just in case mysqld or the
# wsrep_provider left a file descriptor open. We don't want a broken SST
# script or called program from overwriting a tablespace because
# its file descriptor was left open.
if
[
-d
/proc/self/fd
]
;
then
for
fd
in
/proc/self/fd/
*
;
do
fd
=
${
fd
##*/
}
# While bash would support the below syntax other sh's don't
#[ $fd -gt 2 ] && exec {fd}>&-
[
$fd
-gt
2
]
&&
eval
"exec
${
fd
}
>&-"
2> /dev/null
done
else
upper_no_file
=
$(
ulimit
-n
)
[
"
$upper_no_file
"
=
"unlimited"
]
||
[
-z
"
$upper_no_file
"
]
&&
upper_no_file
=
1024
while
[
$upper_no_file
-gt
2
]
do
eval
"exec
${
upper_no_file
}
>&-"
upper_no_file
=
$((
"
$upper_no_file
"
-
1
))
done
fi
set
-u
set
-u
WSREP_SST_OPT_BYPASS
=
0
WSREP_SST_OPT_BYPASS
=
0
...
...
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