Skip to content

Commit 9ae9483

Browse files
committed
JAVA-467: removed call to _check() from within getServerAddress because this method should not block.
It is used for information purpose and docs states it is null until data has been returned. One example is that it made cursor.toString() block on long queries.
1 parent 14ae90b commit 9ae9483

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/com/mongodb/DBCursor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,6 @@ public DBCollection getCollection(){
678678
* @return
679679
*/
680680
public ServerAddress getServerAddress() {
681-
_check();
682-
683681
if (_it != null && _it instanceof DBApiLayer.Result)
684682
return ((DBApiLayer.Result)_it).getServerAddress();
685683

0 commit comments

Comments
 (0)