Commit Graph

1332 Commits

Author SHA1 Message Date
3ff51fb7e9 store/tikv: fix a potential goroutine leak problem in copIterator (#6140)
copIterator.Close() closes finished channel and wait for worker goroutines to
exit, worker goroutine send response to channel but nobody receive from the
channel (copIterator already closed), so those goroutine leak and Close() function
hang forever.

Change the worker goroutine to check both response channel and finished channel.
2018-03-26 02:48:29 -05:00
4ac14515bd store/tikv,mocktikv: tikv.Client.SendRequest API tiny refactor (#6103)
rename SendReq to SendRequest, add a timeout parameter,
and more elegant code for timeout API
2018-03-26 00:42:18 -05:00
6ff87d649a ddl, tables: remove useless NewIndexWithBuffer (#6126) 2018-03-23 15:42:29 +08:00
501de19821 stats: add average column size for the histogram (#5974) 2018-03-23 13:44:24 +08:00
688690a07f plan: UnionScan's predicates should be cloned ones. (#6124) 2018-03-23 10:13:23 +08:00
a90ecea7dd executor: remove some remained unused functions for removing Executor.Next (#6112) 2018-03-22 21:34:52 +08:00
lwh
861103b4ae executor: remove Next function for HashAggExec (#5987) 2018-03-22 17:16:51 +08:00
27dc8f3550 expression/agg: add ResetContext() for stream aggregation. (#6097) 2018-03-22 13:52:02 +08:00
4241d70646 types: support converting json to float64 (#6081) 2018-03-22 13:37:53 +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
6f43b37572 Add admin checksum table command (#6067) 2018-03-20 20:46:43 +08:00
1081126e25 *: fix a data race for SelectForUpdate executor (#6096)
select * from (select * from t for update) t join t1 for update
There will be two SelectForUpdate executors, both modify TxnCtx
in NextChunk
2018-03-20 05:37:30 -05:00
4886dcb1c4 executor: track the memory usage of IndexLookUpExecutor (#6009) 2018-03-20 12:55:12 +08:00
67c948b609 executor: refactor merge join (#6078) 2018-03-20 12:37:40 +08:00
eacca19bde executor: remove Next function for NestedLoopApplyExec (#6027) 2018-03-20 10:44:07 +08:00
eec1c524dc util: refine Row.GetDatum when tp is MyDecimal (#6087) 2018-03-19 17:11:07 +08:00
daa866cdd4 executor: remove Next function for executor/write.go (#5995)
remove Next function for DeleteExec && LoadData && InsertExec && ReplaceExec && UpdateExec
2018-03-18 21:10:51 +08:00
ebdcdb1eac executor: remove Next function for prepared.go (#6003) 2018-03-17 08:45:34 +08:00
063924a4f6 executor: remove Next() function for CheckTableExec (#6057) 2018-03-17 08:26:50 +08:00
c2c85b3102 executor, util: refine row.GetMyDecimal (#6077) 2018-03-16 22:55:16 +08:00
4cbdf1e69f executor: remove Next function for SetExec (#6005) 2018-03-16 22:33:27 +08:00
bc1611a8ac executor: Change makeJoinRowToChunk to account for virtual rows (#6049) 2018-03-16 13:27:47 +08:00
cf6a0045da executor: remove Next() function for SelectionExec (#6021)
* executor: remove Next() function for SelectionExec
2018-03-16 11:45:49 +08:00
090f7c5e12 admin: show more information on ddl history (#6035)
* admin:address comments

* output information limit number

* handling comment questions

* handling comment questions

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* *: fix test case

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments

* Address comments
2018-03-16 10:07:50 +08:00
f94e39b86f executor: remove Next function for RevokeExec (#6004) 2018-03-16 09:31:37 +08:00
11f41a3ef8 executor: remove Next function for SimpleExec (#6001) 2018-03-16 09:20:09 +08:00
d81f637bb8 executor: remove Next function for SortExec (#6052)
* executor: remove Next() function for SortExec and TopNExec
2018-03-16 08:43:16 +08:00
98a2640286 *: support 'admin recover index' (#5980) 2018-03-15 18:04:35 +08:00
a46480c830 *: export implicit rowid and use it in CRUD (#5984) 2018-03-15 16:35:58 +08:00
d2d06ecac2 executor: remove Next() function for ProjectionExec (#6023) 2018-03-15 12:51:11 +08:00
0553deeb42 *:improve code readability and unified aliases (#5997) 2018-03-15 10:52:36 +08:00
629ebf177b executor: remove Next() function for TableDualExec (#6022) 2018-03-15 08:31:40 +08:00
b64284766f executor: remove Next() function for SelectLockExec (#6056) 2018-03-14 23:44:43 +08:00
98366c47b6 executor: remove Next() function for ShowDDLJobsExec (#6058) 2018-03-14 23:29:02 +08:00
a962df3739 executor: remove Next() function for ShowDDLExec (#6059) 2018-03-14 23:11:01 +08:00
5aaed4b15d executor: remove Next() function for CancelDDLJobsExec (#6060) 2018-03-14 21:55:26 +08:00
a9af0ca2f9 executor: remove Next() function for LimitExec (#6055) 2018-03-14 18:36:55 +08:00
c86da64bf5 executor: remove Next function for UnionScanExec (#5996) 2018-03-14 17:13:34 +08:00
631141b22c *: remove Next function for RecordSet (#6040) 2018-03-13 21:05:10 +08:00
f59c5bedc0 executor: remove Next() function for TopNExec (#6029) 2018-03-13 16:33:55 +08:00
b4ed212966 plan: fix a bug when do column substitution for join. (#6041) 2018-03-13 16:13:49 +08:00
00a2d8d719 infoschema: add missing columns in collations_information_applicability (#6025) 2018-03-13 11:17:01 +08:00
46f938c632 executor: remove Next() function for TableScanExec (#6020)
* executor: remove Next() function for TableScanExec
2018-03-13 00:24:59 +08:00
e7dda3245a table, executor: fix a unique key with null (#6032) 2018-03-12 21:37:10 +08:00
df258ca854 executor: remove Next function for IndexLookUpJoin (#5994) 2018-03-12 20:11:18 +08:00
c981480094 executor: remove Next function for ShowExec (#5998) 2018-03-12 17:43:04 +08:00
6a826fd0aa *: collect query feedback (#5909) 2018-03-12 15:37:09 +08:00
ab47fc387f executor: remove Next for DDLExec (#6013) 2018-03-12 14:58:19 +08:00
8fef19a75b executor: remove Next function for StreamAggExec (#6017)
executor: remove Next function for StreamAggExec
2018-03-12 14:39:51 +08:00
31fdda08cd remove Next() function for UnionExec (#6016) 2018-03-12 13:38:00 +08:00