Browse Source

解决调试问题

gitlink
Sydonian 11 months ago
parent
commit
269d4db205
3 changed files with 18 additions and 1 deletions
  1. +1
    -1
      pkgs/ioswitch/dag/node.go
  2. +16
    -0
      pkgs/ioswitch/exec/utils.go
  3. +1
    -0
      sdks/storage/storage_feature.go

+ 1
- 1
pkgs/ioswitch/dag/node.go View File

@@ -245,7 +245,7 @@ func (s *ValueInputSlots) GetVarIDs() []exec.VarID {
}

func (s *ValueInputSlots) GetVarIDsStart(start int) []exec.VarID {
return s.GetVarIDsRanged(start, s.Len()-start)
return s.GetVarIDsRanged(start, s.Len())
}

func (s *ValueInputSlots) GetVarIDsRanged(start, end int) []exec.VarID {


+ 16
- 0
pkgs/ioswitch/exec/utils.go View File

@@ -79,3 +79,19 @@ func (r *Range) ClampLength(maxLen int64) {

*r.Length = math2.Min(*r.Length, maxLen-r.Offset)
}

func (r *Range) Equals(other Range) bool {
if r.Offset != other.Offset {
return false
}

if r.Length == nil && other.Length == nil {
return true
}

if r.Length == nil || other.Length == nil {
return false
}

return *r.Length == *other.Length
}

+ 1
- 0
sdks/storage/storage_feature.go View File

@@ -51,6 +51,7 @@ func (f *BypassWriteFeature) String() string {
type MultipartUploadFeature struct {
serder.Metadata `union:"MultipartUpload"`
Type string `json:"type"`
TempDir string `json:"tempDir"` // 临时文件存放目录
MinPartSize int64 `json:"minPartSize"` // 最小分段大小
MaxPartSize int64 `json:"maxPartSize"` // 最大分段大小
}


Loading…
Cancel
Save