mirror of
https://github.com/apple/foundationdb.git
synced 2026-01-25 04:18:18 +00:00
The `clearknob` command clears the value that a knob has been set to in the configuration database. Note that this does not mean the knob value itself gets cleared - only the value in the configuration database is cleared. The value of the knob will revert to whatever is hardcoded in the corresponding `*Knobs.cpp` file. Sample `fdbcli` session: ``` Welcome to the fdbcli. For help, type `help'. fdb> getknob min_trace_severity `min_trace_severity' is not found fdb> setknob min_trace_severity 20 Please set a description for the change. Description must be non-empty description: test Committed (2) fdb> getknob min_trace_severity `min_trace_severity' is `20' fdb> clearknob min_trace_severity Please set a description for the change. Description must be non-empty description: clear Committed (4) fdb> getknob min_trace_severity `min_trace_severity' is not found ``` Transactions are also supported with the new `clearknob` command: ``` Welcome to the fdbcli. For help, type `help'. fdb> begin Transaction started fdb> setknob min_trace_severity 20 fdb> clearknob min_trace_severity fdb> commit Please set a description for the change. Description must be non-empty. description: test Committed (16) fdb> getknob min_trace_severity `min_trace_severity' is not found ```