Xiang Li 2e92779777 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-19 11:49:05 -07:00
..
2016-07-18 11:08:51 -07:00
2016-05-12 20:50:33 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-08-16 12:13:33 -07:00
2016-06-21 16:20:55 -07:00
2016-05-20 22:31:22 -07:00
2016-05-20 22:31:22 -07:00
2016-06-19 23:00:39 -07:00
2016-05-12 20:50:33 -07:00
2016-05-12 20:50:33 -07:00
2016-05-20 22:31:22 -07:00
2016-05-12 20:50:33 -07:00