executed on primary nodes. Otherwise it will not work on replicate set mongodb
Merge pull request #12 from junwchina/master

Works on replicate set mongodb well