diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index c1d9a506b..5a886acf8 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -753,7 +753,7 @@ impl IndexScheduler { let index = self.index_mapper.index(&rtxn, name)?; let dst = temp_snapshot_dir.path().join("indexes").join(uuid.to_string()); fs::create_dir_all(&dst)?; - index.copy_to_path(dst.join("data.mdb"), CompactionOption::Enabled)?; + index.copy_to_file(dst.join("data.mdb"), CompactionOption::Enabled)?; } drop(rtxn); diff --git a/milli/src/index.rs b/milli/src/index.rs index bd4e5ec2f..800edcbfc 100644 --- a/milli/src/index.rs +++ b/milli/src/index.rs @@ -312,7 +312,7 @@ impl Index { self.env.info().map_size } - pub fn copy_to_path>(&self, path: P, option: CompactionOption) -> Result { + pub fn copy_to_file>(&self, path: P, option: CompactionOption) -> Result { self.env.copy_to_file(path, option).map_err(Into::into) }