summaryrefslogtreecommitdiff
path: root/db/repl/manager.cpp
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2010-05-20 12:40:22 -0400
committerDwight <dwight@10gen.com>2010-05-20 12:40:22 -0400
commit69d84101daf27ee4ef1cb9fa0c7887fc66d71195 (patch)
tree35f87600a73a1b77405d091a9db98e82f640dc93 /db/repl/manager.cpp
parentd1442c9f049a7205903de4e838ab2c86677b72fb (diff)
downloadmongo-69d84101daf27ee4ef1cb9fa0c7887fc66d71195.tar.gz
refacting not done yet rs
Diffstat (limited to 'db/repl/manager.cpp')
-rw-r--r--db/repl/manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/repl/manager.cpp b/db/repl/manager.cpp
index 95c400abc82..9654214b49f 100644
--- a/db/repl/manager.cpp
+++ b/db/repl/manager.cpp
@@ -32,7 +32,7 @@ namespace mongo {
Member *m = _rs->head();
Member *p = 0;
while( m ) {
- if( m->m().state == PRIMARY ) {
+ if( m->state() == PRIMARY ) {
if( p ) throw "twomasters"; // our polling is asynchronous, so this is often ok.
p = m;
}