Commit Graph

4 Commits

Author SHA1 Message Date
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00
Lunny Xiao 1aa1846afb Revert "support reuse session to transaction (#650)" (#651)
This reverts commit c412be2365.
2017-07-23 09:52:08 +08:00
Lunny Xiao c412be2365 support reuse session to transaction (#650) 2017-07-23 09:15:44 +08:00
Lunny Xiao 244841c035 more tests (#601) 2017-05-31 16:45:15 +08:00