Commit Graph

8026 Commits

Author SHA1 Message Date
fcf137c465 store/tikv: create GC session after bootstrap. (#2800)
When we create TiKV store for the first time, the GC session is created before bootstrap.
After bootstrap, the domain bound to GC session is closed, so the GC InfoSchema never updates,
keeps failing with schema out of date error.

* *: fix test
2017-03-09 14:56:22 +08:00
0a30e7e738 util/filesort: fix data race (#2799) 2017-03-09 10:21:35 +08:00
823a93bc43 http: init gorilla mux (#2798) 2017-03-08 20:57:27 +08:00
2d7a8ac0c0 util/filesort: Make sorting async (#2732) 2017-03-08 20:48:27 +08:00
addc341622 plan: check privilege for create user and so on (#2785) 2017-03-08 20:43:38 +08:00
d792ba7b05 executor: add expensive query metrics (#2795) 2017-03-08 20:35:17 +08:00
2809d2fedf store/tikv: drop the unreachable store's regions from cache. (#2792) 2017-03-08 18:22:25 +08:00
5a377ad098 plan: forbid limit to push across selection. (#2793) 2017-03-08 16:37:36 +08:00
517e32b25c store,executor: tiny changes, consider ctx (#2748) 2017-03-08 15:22:29 +08:00
fdf32c4639 plan, types: add type class, infer coalesce. (#2788)
The implementation reference MySQL's source code.
`TypeClass` corresponds to `Item_result` in MySQL.
2017-03-08 14:51:13 +08:00
a623e670e6 *: implement "kill tidb xxx" statement (#2768) 2017-03-08 13:32:22 +08:00
abe4413bb4 ddl: remove redundant update version (#2786) 2017-03-08 09:01:16 +08:00
fb9cd85e2e *: Speed up the add columns phase (#2769) 2017-03-07 20:11:29 +08:00
9866a538c1 store/tikv: increase minLogCopTaskTime. (#2789)
* store/tikv: increase minLogCopTaskTime.
2017-03-07 02:49:51 -06:00
09a8c1bd7a *: tiny refact move SetProcessInfo (#2790) 2017-03-07 14:48:38 +08:00
fc93cd5129 glide:update kvproto & pd (#2787) 2017-03-06 08:37:58 -06:00
e617e0492b vendor: update grpc to v1.0.4 (#2784) 2017-03-06 19:47:08 +08:00
ecb01eb3af parser: handle the national character set like N'literal' (#2773) 2017-03-06 19:08:54 +08:00
ef1b2c9ae6 executor: grant statement would create user if not exist (#2756) 2017-03-06 15:04:30 +08:00
e6ad664f8c executor: range task channel in XSelectIndexExec.Close. (#2775) 2017-03-06 13:35:05 +08:00
754c58b188 expression: Use Datum.ToBytes() in AESEncrypt/Decrypt (#2783) 2017-03-05 09:33:12 -06:00
d6a8af33c4 .editorconfig: add .editorconfig file, make tab_size = 4 (#2779) 2017-03-05 18:17:35 +08:00
8934e0c4a0 builtin: add sha/sha1 built-in function (#2781)
* mod: add sha/sha1 built-in function

* Address comment

* unify  return style

* address comments, add some test cases
2017-03-05 18:00:49 +08:00
0391820318 experssion: implement MD5 builtin function (#2780)
* experssion: implement MD5 builtin function
2017-03-05 02:58:47 -06:00
8a212e4bf8 *: fix prepared statement panic (#2767)
* *: fix prepared statement panic
`ast.SelectStmt.Fields` is changed during plan building,
newly created `ast.ColumnNameExpr` has nil Refer.
2017-03-01 18:51:59 +08:00
a055ac3f98 store/tikv: adjust log level for some region errors. (#2765) 2017-03-01 18:12:27 +08:00
f5d098e7e9 plan: remove useless aggregation when pushing down aggregation (#2702) 2017-03-01 14:59:37 +08:00
50a6799d1f parser: PI is not a keywork (#2763) 2017-03-01 14:47:05 +08:00
87d39986fe *: show processlist (#2744) 2017-03-01 14:39:13 +08:00
a2a35c1088 store/tikv: update max backoff. (#2746) 2017-03-01 14:08:55 +08:00
849ec6c63e parser: support ANSI_QUOTES sql mode (#2754)
In ANSI_QUOTES sql mode, "xxx" is parsed to  identifier,
similar to `xxx` in normal sql mode

* fix typo
2017-03-01 13:45:19 +08:00
92a0b89771 parser: grant select on test.* to 'test' (#2757) 2017-03-01 12:50:40 +08:00
0c8f3d04ac clean up comment (#2760)
* *: clean up comment
ActivePendingTxn is an interface of context, not Session

* *: Update comment
2017-03-01 11:28:02 +08:00
44a205fe0a session: reset StmtCtx in retry (#2761)
session: reset StmtCtx in retry, fix issues 2759
2017-03-01 10:27:32 +08:00
5464aa40b6 session: set txn to nil after retry. (#2758)
Fixes the bug that  retry leaves uncommitted transaction which will be incorrectly committed by the next transaction.

* *: refine comment
2017-02-28 23:47:41 +08:00
8ff4e75407 binlog: always include old row for update and delete (#2624)
Old row value is required for translating to MySQL binlog.
2017-02-28 15:43:04 +08:00
da52b47c39 expression: make values function underministic. (#2753) 2017-02-28 15:07:03 +08:00
661637080d *: Add a empty table for triggers (#2749) 2017-02-28 09:33:18 +08:00
b2f8a6fceb parser: parse kill statement (#2734) 2017-02-27 13:58:02 +08:00
fbf0530210 *: introduce all sql_modes (#2739) 2017-02-27 10:53:48 +08:00
3da54d9e71 metrics for txn region count (#2701)
* tnx_region_count:init metric for num of regions in txn
2017-02-27 10:25:50 +08:00
f765e4ad8f privilege/privileges: make TiDB more robust when mysql.db doesn't exist (#2733) 2017-02-26 19:44:26 +08:00
7882b66f2b disable cgo for release build (#2735) 2017-02-25 02:29:16 -06:00
66baa1d78d ddl: fix the bug of %!(MISSING) in error message (#2727) 2017-02-25 13:06:13 +08:00
f695f874c6 parser: compatible with "on update timestamp now" (#2728) 2017-02-24 19:32:12 +08:00
07952cb108 *: basic support show warnings. (#2724) 2017-02-24 16:29:39 +08:00
a1a24e8c42 benchdb: bootstrap session. (#2726)
* benchdb: use random string for every row
2017-02-24 14:03:20 +08:00
b3a57325a0 *: make TiDB more robust when synchronize mysql.user table (#2722)
* load privilege table will ignore data that can't recognize
* convert IP to domain for connection verification
2017-02-24 13:04:59 +08:00
b0aa4ce68b parser: parse ON UPDATE CURRENT_TIMESTAMP(6) (#2714) 2017-02-24 12:48:04 +08:00
3ad2608c9a plan: decorrelate for aggregation. (#2682)
* plan: decorrelate for aggregation.

* add test

* address comment.
2017-02-24 09:45:57 +08:00