From 86f9d3865bb93d84cc5e5bab7f36bfd4f134901e Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 8 Aug 2023 09:21:23 +0200 Subject: Fix broken inode assertion (#39188) --- lib/spack/llnl/util/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/llnl/util/lock.py b/lib/spack/llnl/util/lock.py index a593b75745..74a325acd2 100644 --- a/lib/spack/llnl/util/lock.py +++ b/lib/spack/llnl/util/lock.py @@ -143,7 +143,7 @@ class OpenFileTracker: def release_by_stat(self, stat): key = (stat.st_dev, stat.st_ino, os.getpid()) open_file = self._descriptors.get(key) - assert open_file, "Attempted to close non-existing inode: %s" % stat.st_inode + assert open_file, "Attempted to close non-existing inode: %s" % stat.st_ino open_file.refs -= 1 if not open_file.refs: -- cgit v1.2.3-70-g09d2