Skip to main content

reset_learned_data

Function reset_learned_data 

Source
pub fn reset_learned_data(paths: &RuntimePaths) -> Result<()>
Expand description

The caller must have quiesced every session on these paths.

自己取独占的维护租约(DictionaryAccess::try_maintenance),在建好两个目录之后、动任何文件之前:还有会话或别的维护持着租约时以 Busy(DICTIONARY_MAINTENANCE_BUSY)失败,什么也不换。