| 984 | REGISTER_CMD(GetDocLayerVersionCmd, "getdoclayerversion"); |
| 985 | |
| 986 | struct 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 | }; |
| 1000 | REGISTER_CMD(BuggifyKnobsCmd, "buggifyknobs"); |
| 1001 | |
| 1002 | struct AvailableQueryOptionsCmd { |
nothing calls this directly
no outgoing calls
no test coverage detected