Gyu-Ho Lee
835d824965
*: minor typos, kill TODOs
2016-01-20 16:21:39 -08:00
Gyu-Ho Lee
b6077f9d57
*: fix minor typos
2016-01-14 01:28:29 -08:00
Xiang Li
6b1d9fb7ce
*: stop lessor when etcdserver is stopped
2016-01-12 10:06:11 -08:00
Xiang Li
59bf83c7f4
*: now lease keepAlive works on leader
2016-01-09 22:12:02 -08:00
Xiang Li
f01c8188f8
*: rename lease.DeleteableRange to lease.RangeDeleter
2016-01-09 11:01:58 -08:00
Xiang Li
f5753f2f51
*: support lease Attach
...
Now we can attach keys to leases. And revoking the lease removes all
the attached keys of that lease.
2016-01-09 11:01:58 -08:00
Xiang Li
12912501bd
lease: remove minExpiry and add helper funcs
2016-01-08 14:29:33 -08:00
Xiang Li
2566699a48
*: revoke expired leases
2016-01-08 13:37:58 -08:00
Xiang Li
f5fa9b5384
*: expose Lessor Promote and Demote interface
2016-01-07 18:18:20 -08:00
Xiang Li
99bee2fd29
Merge pull request #4162 from xiang90/lease
...
*: add support for lease create and revoke
2016-01-07 16:58:59 -08:00
Xiang Li
d9ca929a33
*: add support for lease create and revoke
...
Basic support for lease operations like create and revoke.
We still need to:
1. attach keys to leases in KV implmentation if lease field is set
2. leader periodically removes expired leases
3. leader serves keepAlive requests and follower forwards keepAlive
requests to leader.
2016-01-07 16:39:39 -08:00
Xiang Li
6f39608624
Merge pull request #4160 from xiang90/fix_lease
...
lease: unlock before another batch operation
2016-01-07 11:20:31 -08:00
Xiang Li
f22ea70c14
lease: unlock before another batch operation
2016-01-07 10:41:16 -08:00
Anthony Romano
f9af744be3
lease: move storage.NoLease to lease package
2016-01-07 10:33:44 -08:00
Xiang Li
9156e54f1f
lease: recovery leases from backend
2016-01-05 11:21:11 -08:00
Xiang Li
09b420f08c
*: move leaseID typedef to lease pkg
2016-01-05 10:18:17 -08:00
Xiang Li
25f82b25f7
lease: modify API and persist lease to disk
2016-01-05 10:09:42 -08:00
Xiang Li
bf3bc0ed6b
lease: delete items when the lease is revoked.
...
Add minimum KV interface and implmement the deleting mechanism for
revoking lease.
2015-11-11 13:21:12 -08:00
Xiang Li
bf70b5127a
lease: initial lessor impl
2015-11-08 11:28:50 -08:00