Merge pull request #194 from zhangzhishan/master
Fix space problem for getting lock file.
This commit is contained in:
commit
7577f220dc
|
@ -3024,7 +3024,7 @@ function _HandleLocksLocal {
|
||||||
|
|
||||||
# Skip the whole part if overwrite true
|
# Skip the whole part if overwrite true
|
||||||
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
||||||
lockfileContent="$(head -c16384 $lockfile)"
|
lockfileContent="$(head -c16384 "$lockfile")"
|
||||||
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
||||||
lockPid="${lockfileContent%@*}"
|
lockPid="${lockfileContent%@*}"
|
||||||
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
||||||
|
|
|
@ -450,7 +450,7 @@ function _HandleLocksLocal {
|
||||||
|
|
||||||
# Skip the whole part if overwrite true
|
# Skip the whole part if overwrite true
|
||||||
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
||||||
lockfileContent="$(head -c16384 $lockfile)"
|
lockfileContent="$(head -c16384 "$lockfile")"
|
||||||
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
||||||
lockPid="${lockfileContent%@*}"
|
lockPid="${lockfileContent%@*}"
|
||||||
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
||||||
|
|
2
osync.sh
2
osync.sh
|
@ -2859,7 +2859,7 @@ function _HandleLocksLocal {
|
||||||
|
|
||||||
# Skip the whole part if overwrite true
|
# Skip the whole part if overwrite true
|
||||||
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
|
||||||
lockfileContent="$(head -c16384 $lockfile)"
|
lockfileContent="$(head -c16384 "$lockfile")"
|
||||||
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
Logger "Master lock pid present: $lockfileContent" "DEBUG"
|
||||||
lockPid="${lockfileContent%@*}"
|
lockPid="${lockfileContent%@*}"
|
||||||
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
if [ $(IsInteger $lockPid) -ne 1 ]; then
|
||||||
|
|
Loading…
Reference in New Issue