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

Method clear_lock

salt/utils/gitfs.py:750–761  ·  view source on GitHub ↗

Clear update.lk

(self, lock_type="update")

Source from the content-addressed store, hash-verified

748 return cleaned
749
750 def clear_lock(self, lock_type="update"):
751 """
752 Clear update.lk
753 """
754 if self.__class__._master_lock.acquire(timeout=60) is False:
755 # if gitfs works right we should never see this timeout error.
756 log.error("gitfs master lock timeout!")
757 raise TimeoutError("gitfs master lock timeout!")
758 try:
759 return self._clear_lock(lock_type)
760 finally:
761 self.__class__._master_lock.release()
762
763 def _clear_lock(self, lock_type="update"):
764 """

Callers 1

gen_lockMethod · 0.95

Calls 5

_clear_lockMethod · 0.95
TimeoutErrorClass · 0.85
acquireMethod · 0.45
errorMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected