Skip to content

Commit

Permalink
Add auto_slaveok option
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Jun 19, 2012
1 parent 7aeacef commit e2fa9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ commands.forEach(function(k) {
}

var client, node;
if (this.slaveOk(k)) {
if (this.options.auto_slaveok || this.slaveOk(k)) {
if (node = this.randomSlave()) {
self.log(k + ' on ' + node);
client = node.client;
Expand Down

0 comments on commit e2fa9f6

Please sign in to comment.