Files
tidb/statistics
Han Fei 6fa6a990f8 statistics: use PrevLastVersion to avoid error. (#3060)
Currently, we use startTS of a txn as the version of a stats table. There may be an error like this:
txn1 with version 2 write firstly.
TiDB update it, and the latest udpate version is 2.
then txn2 with version 1 write.
TiDB will never get it with the version 2.

So we choose to get the table stats which version is greator than the version before last two lease.
2017-04-17 22:50:03 +08:00
..