MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / call

Method call

src/ExtCmd.actor.cpp:263–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261struct 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};
279REGISTER_CMD(ServerStatusCmd, "serverstatus");
280

Callers

nothing calls this directly

Calls 1

addDocumentMethod · 0.80

Tested by

no test coverage detected