Commit Graph

145 Commits

Author SHA1 Message Date
cbf7415873 *: add errcode for structure, tablecodec, admin files (#14054) 2019-12-16 12:07:02 +08:00
5da10ffecc *: refine some error code (#14002) 2019-12-12 11:09:58 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
826e1d712b *: cleanup error code (#13874) 2019-12-03 20:29:09 +08:00
246b91edd4 meta: refine error code for package meta (#13654) 2019-11-27 12:57:07 +08:00
2de2baa256 *: fix staticcheck errors in folder bindinfo, config, infoschema, meta and privilege (#13702) 2019-11-26 17:27:29 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
df1baca19f *: support adding/dropping the primary key by a configuration (#13229) 2019-11-15 01:10:51 +08:00
9d769e4a05 meta: make auto id minimum step larger (#12873) 2019-10-22 18:31:29 +08:00
8ed2e1bf45 util/admin: fix the error of "invalid list index" when cancel ddl jobs (#12402) 2019-10-13 20:39:03 +08:00
01cddf63d9 dml : Multiple rows insert in a statement should have consecutive autoID if needed. (#11876)
* consecutive id

* add AllocN interface func for util/kvencoder/allocator.go

* fix allocN test

* fix allocN tests

* fix allocN test 1

* fix allocN test 2

* fix allocN test 3

* fix allocN test 4

* fix cache

* add auto consecutive increment id in insert executor

* add auto consecutive increment id comment in insert executor

* try fix test case

* fix session_test.TestAutoIncrementID autoid overflow

* fix session_test.TestAutoIncrementID unsighed autoid overflow

* fix autoid usigned computing overflow

* fix conflict with suli's PR

* fix index out of range

* merge similar function

* delete fillRowLazy

* fix commment

* fix bug of rebase

* fix auto.go maxUint64 will be allocated

* fix maxInt64 autoid allocated

* fix batch rowIdx update

* add maxUint64 and maxInt64 limit in allocN

* reconstruct the autoid lazy alloc

* fix format

* remove commnet

* use new kind of logutil.logger(ctx) instead of logutil.BgLogger()

* combine alloc() and allocN together

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* remove cache of hasValue

* add test : autoID can find in retryInfo

* add test : autoID can find in retryInfo

* extract retry logic

* extract retry logic

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* Update executor/insert_common.go

Co-Authored-By: bb7133 <bb7133@gmail.com>

* fix comment

* fix comment

* fix comment

* fix comment

* fix comment

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* return min and max instead of slice in alloc autoid

* add comment for alloc N
2019-10-10 10:34:44 +08:00
c2901fea45 meta/autoid : fix the issue that MaxUint64 and MaxInt64 autoID is incorrectly allocated (#12119) 2019-09-11 08:07:39 -05:00
fc9def1e5f ddl,meta: Generate global IDs in bulk to reduce the number of lock acquisition (#11635) 2019-08-09 14:55:33 +08:00
435a912d29 ddl: disallow dropping index on auto_increment column (#11360) 2019-07-23 15:13:24 +08:00
b63a8bfedf meta: make auto increment id can be adjust. (#10978) 2019-06-28 22:26:08 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
8599fee538 *: implement IterReverse for tikvSnapshot and use desc scan to get latest N ddl history jobs. (#10152) 2019-05-31 23:40:09 +08:00
f75d9c0af5 ddl: cancel add index when can not find partition and fix GetPartition function bug (#10475) 2019-05-20 11:13:26 +08:00
e90f3b9568 meta, util: add unit tests (#10054) 2019-04-11 10:22:00 +08:00
dd08a0a7b0 meta/autoid: remove memoryAllocator (#10061) 2019-04-09 11:06:05 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
e31e8f1560 *: reduce runtime.growslice by preallocation (#9946) 2019-03-31 10:31:06 +08:00
b78490e403 *: use the unified log format for the remaining packages (#9743) 2019-03-22 16:34:47 +08:00
f522de2e8f ddl: support "or replace" option when create view (#8856) 2019-01-16 19:54:22 +08:00
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
44f2c2c381 Makefile: make 'make check' faster (#8755)
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
8672716883 remove an unused variable (#8229) 2018-11-08 13:58:56 +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
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
73cab9252d Fix some misspells (#7830) 2018-10-08 09:40:03 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
82a6c1085c *: introduce the concept of physical ID, code refactory (#7374) 2018-08-16 10:33:24 +08:00
359df6ecc2 variable, ddl: add session variable 'tidb_ddl_reorg_priority' to set operation priority of ddl reorg (#7116) 2018-08-08 17:16:05 +08:00
3a3845fb24 *: support admin show ddl (#7274) 2018-08-07 18:23:41 +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
3971357c79 meta/autoid: reduce concurrency in test (#7123)
Makes test more stable.
2018-07-23 11:58:34 +08:00
998f696421 *: support set relation job (#6206) 2018-04-13 10:30:45 +08:00
cb04e97abf ddl, meta: clean the jobs in adding index queue (#6161) 2018-04-04 19:04:48 +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
4db4b45e4a meta: Add metrics for meta package (#5770) 2018-02-02 14:27:55 +08:00
1d07320c66 *: support create time in information_schema (#5590) 2018-01-22 13:33:20 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
132626e4f6 ddl: fix rawArgs is overwritten (#5531)
* ddl: fix rawArgs is overwritten
2018-01-02 17:03:58 +08:00
682bec01f6 meta: tiny clean up (#5538) 2018-01-02 15:58:52 +08:00