Currently a opened file is still accessible even after repo is closed. The reason is that an opened file is still holding strong reference to underlying storage object, which prevents storage object from being released. A closed repo must not allow any open file access. This can be achieved by let open file hold weak reference to storage object.
Currently a opened
file
is still accessible even after repo is closed. The reason is that an openedfile
is still holding strong reference to underlying storage object, which prevents storage object from being released. A closed repo must not allow any open file access. This can be achieved by let open file hold weak reference to storage object.