| 281 | struct ReplSetGetStatusCmd { |
| 282 | static const char* name; |
| 283 | static Future<Reference<ExtMsgReply>> call(Reference<ExtConnection> nmc, |
| 284 | Reference<ExtMsgQuery> query, |
| 285 | Reference<ExtMsgReply> reply) { |
| 286 | bson::BSONObjBuilder bob; |
| 287 | |
| 288 | // FIXME: what do we really want to report here? |
| 289 | bob.append("ok", 0.0); |
| 290 | bob.append("errmsg", "not really talking to mongodb"); |
| 291 | bob.append("$err", "not really talking to mongodb"); |
| 292 | |
| 293 | reply->addDocument(bob.obj()); |
| 294 | |
| 295 | return reply; |
| 296 | } |
| 297 | }; |
| 298 | REGISTER_CMD(ReplSetGetStatusCmd, "replsetgetstatus"); |
| 299 |
nothing calls this directly
no test coverage detected