浏览代码

bugfix: thread id must be parsed as hex from lock file name

Thomas Waldmann 2 年之前
父节点
当前提交
163e92dd04
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/locking.py

+ 1 - 1
src/borg/locking.py

@@ -197,7 +197,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)