Merge "Release FDs when stuck peering recovery" into r/stx.3.0

This commit is contained in:
Zuul 2020-09-03 16:18:54 +00:00 committed by Gerrit Code Review
commit 768e3821d0
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ log_and_restart_blocked_osds ()
local message=$2
for name in $names; do
wlog $name "INFO" "$message"
${CEPH_SCRIPT} restart $name
# Restart the daemons but release ceph mon and osd file descriptors
${CEPH_SCRIPT} restart $name {LOCK_CEPH_MON_STATUS_FD}>&- {LOCK_CEPH_OSD_STATUS_FD}>&-
done
}