Add lock expiry handler to expire state locks (#8562)

This commit is contained in:
Harshavardhana
2019-11-25 16:39:43 -08:00
committed by GitHub
parent e542084c37
commit 720442b1a2
7 changed files with 182 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ const (
lockRESTMethodRLock = "/rlock"
lockRESTMethodUnlock = "/unlock"
lockRESTMethodRUnlock = "/runlock"
lockRESTMethodExpired = "/expired"
// Unique ID of lock/unlock request.
lockRESTUID = "uid"
@@ -41,4 +42,7 @@ const (
lockRESTResource = "resource"
)
var errLockConflict = errors.New("lock conflict")
var (
errLockConflict = errors.New("lock conflict")
errLockNotExpired = errors.New("lock not expired")
)