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

Class BuggifyKnobsCmd

src/ExtCmd.actor.cpp:986–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984REGISTER_CMD(GetDocLayerVersionCmd, "getdoclayerversion");
985
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
1002struct AvailableQueryOptionsCmd {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected