fix(sftp): avoid metadata on multipart copy (#2935)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
安正超
2026-05-13 15:44:09 +08:00
committed by GitHub
parent c5125b20bd
commit fd3fb77ed5
3 changed files with 58 additions and 17 deletions
+2 -2
View File
@@ -65,13 +65,13 @@ pub(super) fn file_handle(bucket: &str, key: &str, size: u64, attrs: FileAttribu
/// Build a HandleState::Write with the given bucket, key, and
/// WritePhase, ready to be inserted directly into a driver handle
/// table without running open_write. Default FileAttributes are used.
/// table without running open_write. Default FSTAT attrs and empty OPEN attrs are used.
pub(super) fn write_handle(bucket: &str, key: &str, phase: WritePhase) -> HandleState {
HandleState::Write {
bucket: bucket.to_string(),
key: key.to_string(),
attrs: FileAttributes::default(),
open_attrs: FileAttributes::default(),
open_attrs: FileAttributes::empty(),
phase,
}
}