diff --git a/crates/ecstore/src/disk/local.rs b/crates/ecstore/src/disk/local.rs index d1e0e1929..eb15bab20 100644 --- a/crates/ecstore/src/disk/local.rs +++ b/crates/ecstore/src/disk/local.rs @@ -3012,7 +3012,7 @@ fn should_fail_local_inline_rollback_hardlink(dst_path: &Path) -> bool { .remove(dst_path) } -#[cfg(test)] +#[cfg(all(test, target_os = "linux"))] pub(super) fn remove_dst_base_before_commit_std( dst_path: &str, guard: os::RenameCommitGuard, @@ -3290,7 +3290,7 @@ fn should_fail_local_inline_rollback_hardlink(_dst_path: &Path) -> bool { false } -#[cfg(not(test))] +#[cfg(all(not(test), target_os = "linux"))] pub(super) fn remove_dst_base_before_commit_std( _dst_path: &str, guard: os::RenameCommitGuard, diff --git a/crates/ecstore/src/disk/local/multipart_source_state.rs b/crates/ecstore/src/disk/local/multipart_source_state.rs index c01f36b3f..33422b35d 100644 --- a/crates/ecstore/src/disk/local/multipart_source_state.rs +++ b/crates/ecstore/src/disk/local/multipart_source_state.rs @@ -1936,6 +1936,7 @@ impl NativeMultipartPublication { *self.validated_prepared.lock() = Some(validated); Ok(()) } + #[cfg(target_os = "linux")] pub(super) fn prepare_and_install_head_on_thread( &self, new_metadata: &[u8],