Fix broken inode assertion (#39188)
This commit is contained in:
parent
834e7b2b0a
commit
86f9d3865b
@ -143,7 +143,7 @@ def get_fh(self, path: str) -> IO:
|
|||||||
def release_by_stat(self, stat):
|
def release_by_stat(self, stat):
|
||||||
key = (stat.st_dev, stat.st_ino, os.getpid())
|
key = (stat.st_dev, stat.st_ino, os.getpid())
|
||||||
open_file = self._descriptors.get(key)
|
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
|
open_file.refs -= 1
|
||||||
if not open_file.refs:
|
if not open_file.refs:
|
||||||
|
Loading…
Reference in New Issue
Block a user