Commit Graph

34 Commits

Author SHA1 Message Date
de56ea67e4 store/tikv/region_cache: Backoff when region epoch is ahead of TiKV (#9181)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2019-02-14 15:02:30 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
f18e034de9 store/tikv: Support RawReverseScan (#8352)
Signed-off-by: kamijin_fanta <kamijin@live.jp>
2019-01-15 14:57:04 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
3ac6d3a9f4 store/tikv: avoid holding write lock for long time (#6880)
Optimize RegionCache performance on send request failure.
2018-06-25 21:30:58 +08:00
f994f4f987 *: clean up MvccStore in mocktikv (#6256)
* *: clean up MvccStore in mocktikv
2018-04-11 10:30:27 +08:00
546b5acd1d ddl: speed up add index by split handle range from pd region. (#5964) 2018-03-22 15:30:11 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05:00
5807feaf5b makefile,store/tikv: allow golint check context.Context in 'make check' (#5898) 2018-02-24 19:38:28 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +08:00
6c68e41f73 store/tikv: use go fail for some tests. (#5280)
* store/tikv: use go fail for some tests.
2017-12-01 08:20:30 -08:00
1b70a6d524 store/tikv: fix region cache data race. (#5171) 2017-11-21 22:54:16 -06:00
b9c3bc4e43 store-tikv: drop invalid cached region (#4506) 2017-09-25 12:59:04 +08:00
2dd93852ad store/tikv: revise region cache log (#3474) 2017-06-14 20:57:47 +08:00
294334fe0b *: change standard "context" package to "golang.org/x/net/context" (#2890) 2017-03-20 13:03:51 +08:00
e791b9a3be http: get region's info (#2774) 2017-03-17 12:08:53 +08:00
2809d2fedf store/tikv: drop the unreachable store's regions from cache. (#2792) 2017-03-08 18:22:25 +08:00
5a3099477a ticlient: clear store address info when receiving StoreNotMatch (#2339) 2016-12-28 17:51:46 +08:00
1e8d970b3e store/tikv: cache store. (#2193) 2016-12-09 11:10:42 +08:00
b47cb7b6c5 store/tikv: reduce the use of region.Clone(). (#2182) 2016-12-07 16:17:45 +08:00
d5afd1aa92 store/tikv: encode keys before save to mvcc store. (#2108)
* store/tikv: encode keys before save to mvcc store.
2016-11-30 14:18:55 +08:00
0b35f481c0 store/tikv: add a context in BackOffer to support cancel operation (#1988)
* store/tikv: add a context in BackOffer to support cancel operation
2016-11-17 14:05:21 +08:00
0c65b7f978 store/tikv: change mutex style. (#1527) 2016-08-01 12:13:04 +08:00
a5aca8a5e1 store/tikv: udpate backoff. (#1506) 2016-07-28 10:31:03 +08:00
fe6386706e *: Update pd/kvproto vendor and change mock-pd interface (#1456) 2016-07-15 22:38:50 +08:00
477b90849a store/tikv: cleanup tests, reduce tests time. (#1346) 2016-06-24 17:07:31 +08:00
7330427b19 store/tikv: use rbtree for cache region search (#1285)
* store/tikv: speed up GetRegion

* store/tikv: use rbtree for region cache.
2016-06-04 15:12:29 +08:00
6bbcce2a95 store/tikv: add pd retry, add tid in commit logs (#1255)
* store/tikv: add retry for PD RPC

* store/tikv: add tid in log
2016-05-26 10:50:18 +08:00
36c3e801b1 store/tikv: use id+version to identify Region. (#1241) 2016-05-18 16:16:44 +08:00
1a0aac2227 store/tikv: re-add peer (#1228)
* store/tikv: re-add peer

* store/tikv: update mock-tikv and tests

* *: update vendor
2016-05-13 11:49:50 +08:00
91a2eb1135 store/tikv: update tests with mocktikv (#1216)
* store/tikv: update RegionCache test with mocktikv

* store/tikv: update coprocessor tests with mocktikv

* store/tikv: update scan test with mocktikv
2016-05-10 17:26:13 +08:00
f673bc38a1 store/tikv: remove Peer (#1187)
* store/tikv: remove Peer
*: update deps
2016-05-03 15:29:53 +08:00
7072eda9b6 ticlient: import ticlient (#1168)
ticlient: import ticlient to store/tikv
2016-04-27 11:37:16 +08:00