Explorar o código

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

Thomas Waldmann %!s(int64=2) %!d(string=hai) anos
pai
achega
163e92dd04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)