Skip to content

A question about PoolCluster.js #627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vfan opened this issue Oct 31, 2013 · 3 comments
Closed

A question about PoolCluster.js #627

vfan opened this issue Oct 31, 2013 · 3 comments
Labels
Milestone

Comments

@vfan
Copy link

vfan commented Oct 31, 2013

in file node_modules\mysql\lib\PoolCluster.js

//why we need to process the pattern,("abd"-->"ab")
var keyword = pattern.substring(pattern.length - 1, 0);

  foundNodeIds = this._serviceableNodeIds.filter(function (id) {
      return id.indexOf(keyword) === 0;
    });
//when I add two obj to poolCluster,the keys are "abc","abd",

    poolCluster.getConnection("abc",function(err, connection) {
//you may return "abd" here
}));
@vfan
Copy link
Author

vfan commented Feb 8, 2014

no answer?

@sidorares
Copy link
Member

ping @ifsnow

@dougwilson dougwilson added this to the 2.2 milestone Apr 27, 2014
dougwilson added a commit that referenced this issue Apr 27, 2014
dougwilson added a commit that referenced this issue Apr 27, 2014
@vfan
Copy link
Author

vfan commented Aug 21, 2014

great!

@mysqljs mysqljs locked and limited conversation to collaborators Aug 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants