Skip to content

Commit 78f0966

Browse files
committed
JAVA-1071: authenticate no longer fails if there is no primary
1 parent cc055a5 commit 78f0966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBTCPConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public boolean isOpen(){
628628

629629
@Override
630630
public CommandResult authenticate(MongoCredential credentials) {
631-
checkMaster(false, true);
631+
checkMaster(false, false);
632632
final DBPort port = _myPort.get(false, ReadPreference.primaryPreferred(), null);
633633

634634
try {

0 commit comments

Comments
 (0)