etcd/mvcc
Xiang Li bd62b0a646 mvcc: attach keys to leases after recover all state
The previous logic is wrong. When we have hisotry like Put(foo, bar, lease1),
and Put(foo, bar, lease2), we will end up with attaching foo to two leases 1 and
2. Similar things can happen for deattach by clearing the lease of a key.

Now we try to fix this by starting to attach leases at the end of the recovery.
We use a map to keep the last lease attachment state.
2016-08-04 11:17:58 -07:00
..
backend build, backend: add backend commit failpoints 2016-07-14 12:26:35 -07:00
mvccpb *: regenerate proto with latest grpc-gateway 2016-07-27 13:21:03 -07:00
doc.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
index.go mvcc: use capnslog 2016-05-20 22:31:22 -07:00
index_bench_test.go mvcc: add keyIndex benchmark test 2016-06-09 14:13:18 -07:00
index_test.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
key_index.go mvcc: use capnslog 2016-05-20 22:31:22 -07:00
key_index_test.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
kv.go *: support count in range query 2016-06-21 16:20:55 -07:00
kv_test.go *: support count in range query 2016-06-21 16:20:55 -07:00
kvstore.go mvcc: attach keys to leases after recover all state 2016-08-04 11:17:58 -07:00
kvstore_bench_test.go mvcc: use capnslog 2016-05-20 22:31:22 -07:00
kvstore_compaction.go mvcc: use capnslog 2016-05-20 22:31:22 -07:00
kvstore_compaction_test.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
kvstore_test.go mvcc: do not hash consistent index 2016-06-28 09:36:26 -07:00
metrics.go *: fix pending events metrics 2016-06-19 23:00:39 -07:00
revision.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
revision_test.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
util.go mvcc: use capnslog 2016-05-20 22:31:22 -07:00
watchable_store.go *: support watch with filters 2016-06-28 13:46:57 -07:00
watchable_store_bench_test.go mvcc: benchmark for synced watchers 2016-05-19 23:31:27 -07:00
watchable_store_test.go mvcc: tighten up watcher cancelation and revision handling 2016-05-27 17:19:32 -07:00
watcher.go *: support watch with filters 2016-06-28 13:46:57 -07:00
watcher_bench_test.go mvcc: update LICENSE header 2016-05-12 20:50:33 -07:00
watcher_group.go mvcc: tighten up watcher cancelation and revision handling 2016-05-27 17:19:32 -07:00
watcher_test.go *: support watch with filters 2016-06-28 13:46:57 -07:00