3910a720df
*: add assertion in kvproto to check data consistency ( #9180 )
2019-03-08 16:49:31 +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
c8c92e2dd7
ddl: refine cancel modify column, add/drop foreign key rollback ( #9419 )
2019-02-27 14:07:34 +08:00
8369ed2ffc
ddl, util: Handle default values for generating column expressions when adding an index ( #9371 )
2019-02-27 12:59:18 +08:00
79a88a0b3c
ddl: fix cancel truncate table ddl error ( #8977 )
2019-02-22 16:58:04 +08:00
45ee205896
ddl :fix cancel add/drop partitioned table ddl job ( #8938 )
2019-02-19 17:22:41 +08:00
33a961decf
ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs ( #9226 )
2019-02-18 11:34:13 +08:00
818ec911c5
admin: fix admin check table err when add column not null, then add index on the column ( #9108 )
2019-01-20 22:44:10 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
e06c87d3c1
add an option for AddRecord and Create ( #8884 )
2019-01-02 11:30:53 +08:00
eaeaca74ae
ddl: fix cancel drop column ddl error ( #8545 )
2018-12-28 11:28:26 +08:00
ffa375fdc2
ddl: fix cancel drop table/database ddl job bug. ( #8537 )
...
* ddl: fix cancel drop table bugs
2018-12-26 10:34:07 +08:00
bd69b15e79
*: add the error check ( #8770 )
2018-12-24 22:22:00 +08:00
a7907ede7a
*: remove fail field from TxnState ( #8712 )
...
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
7056bb0d32
executor, session: refine insert unsigned bigint autoIncreID ( #8181 )
2018-12-18 23:01:10 +08:00
d3b92e0288
ddl: fix panic when add index of generated column. ( #8620 )
2018-12-11 18:08:18 +08:00
6e2d6c7aa7
ddl: fix cancel drop index error ( #8504 )
2018-12-07 23:29:23 +08:00
93acd10f53
*: add context.Context to NewTxn(), tiny refactor ( #8530 )
2018-12-06 17:45:16 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
d301c16e0e
ddl: fix a bug that cancel add index ddl job when workers are not run, which cause tidb ddl hang up ( #8171 )
2018-11-28 17:10:55 +08:00
f085f4fee4
admin: admin check table/index using tidb_snapshot ( #8172 )
...
* admin: admin check table/index support snapshot
2018-11-22 12:21:53 +08:00
3742a0d602
*: Txn() function signature refactor and remove ActivePendingTxn() ( #8327 )
...
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
09c6bff91c
*: Make use of the upperBound of ticlient's kv_scan interface to ensure no overbound scan will happen ( #8081 )
2018-11-09 18:49:00 +08:00
d125958380
tikvclient: Add endKey param to Scanner ( #8178 )
2018-11-08 18:21:40 +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
1434fa9b89
admin: refine admin check decoder ( #7862 )
2018-10-23 17:55:58 +08:00
1bb15f14fa
admin: fix admin check table bug of byte compare ( #7887 )
...
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
bb8ba440e8
admin: fix admin check table compare bug ( #7818 )
2018-09-30 11:42:06 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
bc97e2d616
plan, util/admin: fix admin check table error when a column of index is virtual generated ( #6817 )
2018-08-28 12:42:55 +08:00
d1f2587903
*: admin check table return tidb specific error code. ( #7363 )
2018-08-14 13:54:16 +08:00
702a116a5e
admin: fix admin check table false alarm in the case that index contains pkIsHandle column ( #7317 )
2018-08-09 17:37:47 +08:00
3a3845fb24
*: support admin show ddl ( #7274 )
2018-08-07 18:23:41 +08:00
5a0fd2db46
ddl: GetDDLJobs should return a sort job. ( #7254 )
2018-08-06 21:32:29 +08:00
88bf9f7ba0
admin: support prefix index in admin check table. ( #7241 )
2018-08-06 11:57:46 +08:00
6815dec5b3
ddl: implement reorganize for table partition when adding index ( #6814 )
...
* Handle DDL reorganization for table partitions one by one
* Reorganize metadata changed from handle to startHandle, endHandle, partitionID
2018-07-27 17:49:21 +08:00
8b913c95ef
*: rename "GetDDLJob" to "GetDDLJobByIdx" ( #7129 )
2018-07-25 14:28:45 +08:00
da6f0c1edd
ddl: initial support for parallel DDL ( #6955 )
2018-07-25 10:48:38 +08:00
5f7abc84fe
*: fix panic that upgrade from old version TiDB. ( #7136 )
2018-07-24 18:59:29 +08:00
44e34bd304
*: index refactor for table partition ( #7062 )
2018-07-17 14:01:50 +08:00
7c18d24933
executor, store: fixed daylight saving time issue ( #6823 )
...
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md ) document **BEFORE** filing this PR.
## What have you changed? (mandatory)
During coprocessor dag task, it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package.
I change `timeZoneOffset` to `zone` and add second return parameter `name string`. The intentioned of doing this to adopt the convention of `time` package.
For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`.
## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)
## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
461663652d
*: support 'admin show ddl jobs <number>' grammar ( #7028 )
2018-07-12 14:49:14 +08:00
a8feebee39
executor: make admin check table error more readable. ( #6617 )
2018-06-05 14:16:30 +08:00
64e3acadee
admin: admin check table do not use the timezone of session, it leads to false alarm. ( #6699 )
2018-06-04 14:14:04 +08:00
a4715d5d75
*: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm ( #6625 )
2018-05-24 15:56:02 +08:00
9382be808f
ddl: wait for 2*lease when finishing delete-reorg in a rollback operation ( #6226 )
2018-04-08 23:57:56 +08:00
defccc1acd
executor: fix admin check table bug when the column is nil and has a default value ( #6142 )
2018-03-27 17:35:21 +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
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