diff options
author | Kristina <kristina@10gen.com> | 2012-02-13 13:57:36 -0500 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2012-02-13 13:59:12 -0500 |
commit | 7226ed15e92150301663220455b613705d64dc6d (patch) | |
tree | 23d30e01e4d176bb275adb56e2a35ea7702603dc /src/mongo | |
parent | 4402792701d5df7b9669c2894e10d2c7dc035c58 (diff) | |
download | mongo-7226ed15e92150301663220455b613705d64dc6d.tar.gz |
Better log message SERVER-4810
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/repl/manager.cpp | 5 |
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 |