diff options
author | Kristina <kristina@10gen.com> | 2012-02-13 13:57:36 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-04-20 10:53:42 -0400 |
commit | 672793ce4f079ee259f149a7b530e42dd09cca0c (patch) | |
tree | e0a0b1177ed5c442b069ba7d22d2d3631023964b | |
parent | 49144209b1c537692945594d909713a2fc669db0 (diff) | |
download | mongo-672793ce4f079ee259f149a7b530e42dd09cca0c.tar.gz |
Better log message SERVER-4810
-rw-r--r-- | db/repl/manager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/repl/manager.cpp b/db/repl/manager.cpp index 1a090710084..fb9b6cb66ff 100644 --- a/db/repl/manager.cpp +++ b/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 |