MCPcopy Index your code
hub / github.com/saltstack/salt / close

Method close

salt/utils/mmap_cache.py:853–861  ·  view source on GitHub ↗

Close all mmaps and persistent fds (index, heap, roster, lock).

(self)

Source from the content-addressed store, hash-verified

851 self._last_staleness_check = None
852
853 def close(self):
854 """Close all mmaps and persistent fds (index, heap, roster, lock)."""
855 self._close_mmaps_and_fds()
856 if self._lock_fd is not None:
857 try:
858 self._lock_fd.close()
859 except OSError:
860 pass
861 self._lock_fd = None
862
863 def _open_heap_mmap(self):
864 """

Calls 1

_close_mmaps_and_fdsMethod · 0.95