Add clearconf option to ssh admin.

This commit is contained in:
Mikkel Krautz 2011-11-12 02:47:35 +01:00
parent d59392b89a
commit 9ee6172b04
3 changed files with 41 additions and 8 deletions

View file

@ -808,7 +808,8 @@ func (server *Server) UpdateConfig(key, value string) {
server.numLogOps += 1
}
// Delete the config value identified by the given key from the datastore.
// Write to the freezelog that the config with key
// has been reset to its default value.
func (server *Server) ResetConfig(key string) {
fcfg := &freezer.ConfigKeyValuePair{
Key: proto.String(key),