summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/manager.cpp
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2012-02-13 13:57:36 -0500
committerKristina <kristina@10gen.com>2012-02-13 13:59:12 -0500
commit7226ed15e92150301663220455b613705d64dc6d (patch)
tree23d30e01e4d176bb275adb56e2a35ea7702603dc /src/mongo/db/repl/manager.cpp
parent4402792701d5df7b9669c2894e10d2c7dc035c58 (diff)
downloadmongo-7226ed15e92150301663220455b613705d64dc6d.tar.gz
Better log message SERVER-4810
Diffstat (limited to 'src/mongo/db/repl/manager.cpp')
-rw-r--r--src/mongo/db/repl/manager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/manager.cpp b/src/mongo/db/repl/manager.cpp
index 74a230da2eb..ec970f4b34c 100644
--- a/src/mongo/db/repl/manager.cpp
+++ b/src/mongo/db/repl/manager.cpp
@@ -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