Skip to main content

Module lease

Module lease 

Source

Structsยง

Deadline ๐Ÿ”’
A lease deadline in nanoseconds since LEASE_EPOCH. It only moves forward; 0 means none.
GrantedLease ๐Ÿ”’
A region lease the metasrv granted for a heartbeat sent at sent_at.
GrantedLeases ๐Ÿ”’
The lease of the latest heartbeat each region received, whether or not the region applied it. It is kept apart from the region instance, so a reopen during catchup keeps it.
GrantedLeasesInner ๐Ÿ”’
LeaseWaiter ๐Ÿ”’
Removes the waiter of a region from GrantedLeases when dropped.
NodeLease ๐Ÿ”’
Lease of this node: the latest deadline of the heartbeat responses that carry region leases.

Staticsยง

LEASE_EPOCH ๐Ÿ”’
The instant lease deadlines count from, so that a deadline fits in an AtomicU64.

Functionsยง

lease_nanos ๐Ÿ”’