fix(ecstore): gate Linux-only commit helpers

Co-Authored-By: heihutu <heihutu@gmail.com>
Co-Authored-By: zhi22915 <qiuzgang@gmail.com>
This commit is contained in:
Hauser
2026-11-02 22:41:54 +08:00
parent 3ffe0e56ea
commit 8f13ede8b1
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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,
@@ -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],