Commit Graph

54 Commits

Author SHA1 Message Date
3ed698259d infoschema: maintain the snapshotTS in the infocache (#25322) 2021-06-11 22:42:35 +08:00
xhe
2ca98e393c *: compatibility with staleread (#24285) 2021-05-17 19:53:39 +08:00
c8bc701170 *: misc cleanups to variable package (#24507) 2021-05-11 13:23:38 +08:00
cb94139137 ddl: fix err check (#22988) 2021-03-03 11:26:54 +08:00
75f7485688 ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1) (#22670)
Signed-off-by: AilinKid <314806019@qq.com>
2021-02-05 13:23:17 +08:00
91a9d3065a ddl: make reorg session aware of the new row format (#21412) 2020-12-04 15:29:49 +08:00
8ae5b1cfd1 ddl: fix panic tidb-server doesn't release table lock (#19586) 2020-09-15 19:31:41 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +08:00
931ff98df5 simple fixes for the staticcheck linter (#18923)
Note that this found 2 bugs where errors were being silently ignored.

These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 13:38:17 +08:00
026d5ba192 ddl: stabilize test TestSyncerSimple (#18229)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-07-20 14:39:47 +08:00
6fae78d6cf ddl: use a valid ctx instead of context.Background (#18166) 2020-07-07 15:17:55 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
51015c1c21 *: fix the way to use recover in ddl, and unify using recover in domain and ddl (#16798) 2020-05-18 13:23:47 +08:00
dcafb527ff *: Handle the error of "CampaignOwner" (#16470) 2020-05-09 14:28:05 +08:00
4fd48b0e32 test: enlarge timeout for test (#16464) 2020-04-16 15:20:49 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
3a255c5518 *: fix unit tests on the windows platform (#14826) 2020-02-18 15:23:17 +08:00
2ee3b33b59 domain: change some log's level to ERROR (#14779) 2020-02-13 19:24:12 +08:00
79eaa967bb ddl, stats: handle add/trunctate partition events (#14500) 2020-01-22 17:44:22 +08:00
4dfbb14c51 *: tidy code && prealloc some slice for performance (#13468) 2020-01-02 17:26:10 +08:00
9bd7a6de90 *: support flashback dropped/truncated table (#13109) 2019-12-03 19:49:48 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
ebe8b0989d *: limit a single test function timeout to 4s (#13573) 2019-11-21 13:44:08 +08:00
7f63a80e58 *: stabilize some tests for CI (#13381) 2019-11-13 11:31:50 +08:00
27426daed4 *: make the version of etcd consistent with pd (#13176)
Signed-off-by: Neil Shen <overvenus@gmail.com>
2019-11-06 12:08:03 +08:00
5352e7c65c ddl: use the Options to reorganize the NewDDL paramaters (#11966) 2019-09-02 10:09:44 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
1c1faab678 *: convert key to hex for logs (#11781) 2019-08-20 11:10:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
d23b894c69 ddl: Remove expired keys on PD (#10406) 2019-06-20 13:47:52 +08:00
4449eb062a ddl: add ddl job error count limit, exceed the limit should cancel the ddl job (#9295) 2019-02-27 15:03:04 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
858b200e9a variable: remove tidb_ddl_reorg_worker_cnt and tidb_ddl_reorg_batch_size session level. (#8941) 2019-01-10 15:12:22 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
a7f4687791 store/gc_worker: Use UnsafeDestroyRange instead of DeleteRange in GC (#7560) 2018-09-14 21:33:57 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
10e57a5cef *: save gc_delete_range items that is done in another table instead of deleting them. (#6512) 2018-05-14 07:09:15 -05:00
1da01ea109 set GC worker and loadDeleteRangeSQL high priority (#6450) 2018-05-07 10:34:25 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +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
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
a374fd2c80 gcworker: fix resource leak. (#5651) 2018-01-16 14:36:35 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00