From ec9b52d608e136f19dadb4613f8950de91c52a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 28 Nov 2023 14:32:30 +0100 Subject: [PATCH] Rename copy_to_path to copy_to_file --- index-scheduler/src/batch.rs | 2 +- milli/src/index.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }