mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(objectnode): create reader or writer with corrected volume's type #23077454
Signed-off-by: clinx <chenlin1@oppo.com>
This commit is contained in:
parent
e50f6a23f4
commit
326f7611ca
@ -2873,7 +2873,7 @@ func (v *Volume) CopyFile(sv *Volume, sourcePath, targetPath, metaDirective stri
|
||||
return
|
||||
}
|
||||
if readN > 0 {
|
||||
if proto.IsCold(sv.volType) || proto.IsStorageClassBlobStore(tInodeInfo.StorageClass) {
|
||||
if proto.IsCold(v.volType) || proto.IsStorageClassBlobStore(tInodeInfo.StorageClass) {
|
||||
writeN, err = ebsWriter.WriteWithoutPool(tctx, writeOffset, buf[:readN])
|
||||
} else {
|
||||
writeN, err = v.ec.Write(tInodeInfo.Inode, writeOffset, buf[:readN], 0, nil, tInodeInfo.StorageClass, false)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user