mongodb/node-mongodb-native — pull request #859 by jwalton (2013-01-24 17:59:30+00:00)
Title: Allow ismaster command to run on secondaries and arbiters, since it is a read-only command.

Currently, sending "{ismaster:1}" to any node other than the primary will fail. This fixes this problem.