do a getlasterror or something to the server to verifiy it exists before adding it, and return an error if not. the following is not so good
> db.runCommand(
{ addshard : "asdf;kljasdf%$^&*(" })
{"ok" : 1 , "added" : "asdf;kljasdf%$^&*("}do a getlasterror or something to the server to verifiy it exists before adding it, and return an error if not. the following is not so good
> db.runCommand(
{ addshard : "asdf;kljasdf%$^&*(" })
{"ok" : 1 , "added" : "asdf;kljasdf%$^&*("}