mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 19:00:44 -04:00
bugfix: thread id must be parsed as hex from lock file name
This commit is contained in:
parent
1dcaa74788
commit
804867d3ad
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class ExclusiveLock:
|
|||
host_pid, thread_str = name.rsplit('-', 1)
|
||||
host, pid_str = host_pid.rsplit('.', 1)
|
||||
pid = int(pid_str)
|
||||
thread = int(thread_str)
|
||||
thread = int(thread_str, 16)
|
||||
except ValueError:
|
||||
# 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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue