Store test for sumtree rewind

This commit is contained in:
Ignotus Peverell
2017-10-02 22:32:23 +00:00
parent 2210e706f9
commit 6b4f2a63da
3 changed files with 62 additions and 6 deletions
+1 -2
View File
@@ -442,8 +442,7 @@ where
/// otherwise the RM_LOG_MAX_NODES default value is used.
///
/// TODO whatever is calling this should also clean up the commit to
/// position
/// index in db
/// position index in db
pub fn check_compact(&mut self, max_len: usize) -> io::Result<()> {
if !(max_len > 0 && self.remove_log.len() > max_len ||
max_len == 0 && self.remove_log.len() > RM_LOG_MAX_NODES)