src/backup/fixed_index.rs - FixedIndexReader: remove reference to chunk store

This commit is contained in:
Dietmar Maurer
2019-07-04 08:09:48 +02:00
parent a660978c9a
commit a7c72ad9eb
2 changed files with 17 additions and 18 deletions

View File

@ -95,7 +95,9 @@ impl DataStore {
pub fn open_fixed_reader<P: AsRef<Path>>(&self, filename: P) -> Result<FixedIndexReader, Error> {
let index = FixedIndexReader::open(self.chunk_store.clone(), filename.as_ref())?;
let full_path = self.chunk_store.relative_path(filename.as_ref());
let index = FixedIndexReader::open(&full_path)?;
Ok(index)
}