Fix broken internal names. (#1711)

This commit is contained in:
Gav Wood
2016-07-25 17:45:55 +02:00
committed by GitHub
parent 226fe8e0bb
commit b220e07feb
2 changed files with 11 additions and 1 deletions

View File

@@ -85,6 +85,16 @@ impl Algorithm {
}
}
/// Returns static str describing journal database algorithm.
pub fn as_internal_name_str(&self) -> &'static str {
match *self {
Algorithm::Archive => "archive",
Algorithm::EarlyMerge => "earlymerge",
Algorithm::OverlayRecent => "overlayrecent",
Algorithm::RefCounted => "refcounted",
}
}
/// Returns true if pruning strategy is stable
pub fn is_stable(&self) -> bool {
match *self {