| 261 | struct ServerStatusCmd { |
| 262 | static const char* name; |
| 263 | static Future<Reference<ExtMsgReply>> call(Reference<ExtConnection> nmc, |
| 264 | Reference<ExtMsgQuery> query, |
| 265 | Reference<ExtMsgReply> reply) { |
| 266 | // bson::BSONObjBuilder bob; |
| 267 | |
| 268 | // bob.append( "opcounters" << BSON( "query" << queries ) ); |
| 269 | // bob.append( "ok", 1 ); |
| 270 | |
| 271 | // reply->addDocument( bob.obj() ); |
| 272 | |
| 273 | // reply->addDocument( BSON( "opcounters" << BSON( "query" << queries ) << "ok" << 1 ) ); |
| 274 | reply->addDocument(BSON("ok" << 1.0)); |
| 275 | |
| 276 | return reply; |
| 277 | } |
| 278 | }; |
| 279 | REGISTER_CMD(ServerStatusCmd, "serverstatus"); |
| 280 |
nothing calls this directly
no test coverage detected