Permalink
Browse files

Better log message SERVER-4810

  • Loading branch information...
1 parent 4914420 commit 672793ce4f079ee259f149a7b530e42dd09cca0c @kchodorow kchodorow committed with andy10gen Feb 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 db/repl/manager.cpp
View
@@ -102,7 +102,10 @@ namespace mongo {
// if we're stepping down to allow another member to become primary, we
// better have another member (otherOp), and it should be up-to-date
otherOp != 0 && highestPriority->hbinfo().opTime.getSecs() >= otherOp - 10) {
- log() << "stepping down " << primary->fullName() << endl;
+ log() << "stepping down " << primary->fullName() << " (priority " <<
+ primary->config().priority << "), " << highestPriority->fullName() <<
+ " is priority " << highestPriority->config().priority << " and " <<
+ (otherOp - highestPriority->hbinfo().opTime.getSecs()) << " seconds behind" << endl;
if (primary->h().isSelf()) {
// replSetStepDown tries to acquire the same lock

0 comments on commit 672793c

Please sign in to comment.