summaryrefslogtreecommitdiff
path: root/db/replpair.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-02 16:54:09 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-02 16:54:09 -0400
commit37be79e22469ed1632c95290fc5269cdc989bcdb (patch)
tree0985a7695a6197b6fbd3bc9809681d8cb6b8ae05 /db/replpair.h
parentcafe5555c97eb1d37df7a0147058d14018edab2a (diff)
downloadmongo-37be79e22469ed1632c95290fc5269cdc989bcdb.tar.gz
fix isMaster detection SERVER-1544
Diffstat (limited to 'db/replpair.h')
-rw-r--r--db/replpair.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/replpair.h b/db/replpair.h
index 4897a0abf7a..19b79bd3eba 100644
--- a/db/replpair.h
+++ b/db/replpair.h
@@ -111,7 +111,7 @@ namespace mongo {
If 'client' is not specified, the current client is used.
*/
- inline bool _isMaster( const char *client = 0 ) {
+ inline bool _isMaster() {
if( replSet ) {
if( theReplSet )
return theReplSet->isPrimary();
@@ -142,7 +142,7 @@ namespace mongo {
return false;
}
inline bool isMaster(const char *client = 0) {
- if( _isMaster(client) )
+ if( _isMaster() )
return true;
if ( !client ) {
Database *database = cc().database();