Skip to content

Commit 5868692

Browse files
committed
Merge pull request Percona-Lab#55 from dotmanila/upstream
df command was not portable, added -P
2 parents 29aeb8d + e668ff4 commit 5868692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents/mysql_prm_gtid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ get_local_ip() {
11871187
# Determine if the datadir is full or almost full, the threshold is 97%
11881188
check_datadir_state() {
11891189
# Get the free space of the binlogdir
1190-
FREE_SPC_PCT=`/bin/df $OCF_RESKEY_datadir | /bin/grep -v Filesystem \
1190+
FREE_SPC_PCT=`/bin/df -P $OCF_RESKEY_datadir | /bin/grep -v Filesystem \
11911191
| /bin/sed -e 's/ \+/ /g' | /usr/bin/cut -d' ' -f 5 \
11921192
| /usr/bin/tr -d '%'`
11931193

0 commit comments

Comments
 (0)