mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-26 16:04:06 +00:00
bugfix: thread id must be parsed as hex from lock file name
This commit is contained in:
parent
ca1f1281d5
commit
163e92dd04
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ def kill_stale_lock(self):
|
||||||
host_pid, thread_str = name.rsplit("-", 1)
|
host_pid, thread_str = name.rsplit("-", 1)
|
||||||
host, pid_str = host_pid.rsplit(".", 1)
|
host, pid_str = host_pid.rsplit(".", 1)
|
||||||
pid = int(pid_str)
|
pid = int(pid_str)
|
||||||
thread = int(thread_str)
|
thread = int(thread_str, 16)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Malformed lock name? Or just some new format we don't understand?
|
# Malformed lock name? Or just some new format we don't understand?
|
||||||
logger.error("Found malformed lock %s in %s. Please check/fix manually.", name, self.path)
|
logger.error("Found malformed lock %s in %s. Please check/fix manually.", name, self.path)
|
||||||
|
|
Loading…
Reference in a new issue