Skip to content

Commit

Permalink
Don't increment opcounter if in single_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Jun 18, 2012
1 parent 5678158 commit c17610e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Expand Up @@ -138,7 +138,7 @@ Node.prototype.connect = function() {

Node.prototype.incrOpcounter = function(count, done) {
// Master-only operation
if (this.role != 'master') {
if (this.role != 'master' || this.options.single_mode) {
return;
}
if (typeof count == 'function') {
Expand Down

0 comments on commit c17610e

Please sign in to comment.