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

Method call

src/ExtCmd.actor.cpp:988–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986struct BuggifyKnobsCmd {
987 static const char* name;
988 static Future<Reference<ExtMsgReply>> call(Reference<ExtConnection> ec,
989 Reference<ExtMsgQuery> query,
990 Reference<ExtMsgReply> reply) {
991 enableBuggify(true);
992 const bool bEnable = query->query.getBoolField(name);
993 auto* docLayerKnobs = new DocLayerKnobs(bEnable);
994 delete DOCLAYER_KNOBS;
995 DOCLAYER_KNOBS = docLayerKnobs;
996 reply->addDocument(DOCLAYER_KNOBS->dumpKnobs());
997 return reply;
998 }
999};
1000REGISTER_CMD(BuggifyKnobsCmd, "buggifyknobs");
1001

Callers

nothing calls this directly

Calls 2

addDocumentMethod · 0.80
dumpKnobsMethod · 0.80

Tested by

no test coverage detected