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

Method call

src/ExtCmd.actor.cpp:283–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281struct 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};
298REGISTER_CMD(ReplSetGetStatusCmd, "replsetgetstatus");
299

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
addDocumentMethod · 0.80

Tested by

no test coverage detected