Revert "[#16] object: Allow set copy_number
for every placement vector"
This reverts commit e022a2b831
.
This commit is contained in:
parent
d9c5b9c90e
commit
dbcd514748
5 changed files with 13 additions and 23 deletions
|
@ -128,7 +128,7 @@ type PutObjectPartInit struct {
|
|||
|
||||
hdr *Header
|
||||
|
||||
copyNum []uint32
|
||||
copyNum uint32
|
||||
}
|
||||
|
||||
type PutObjectPartChunk struct {
|
||||
|
@ -894,15 +894,15 @@ func (r *PutObjectPartInit) SetHeader(v *Header) {
|
|||
r.hdr = v
|
||||
}
|
||||
|
||||
func (r *PutObjectPartInit) GetCopiesNumber() []uint32 {
|
||||
func (r *PutObjectPartInit) GetCopiesNumber() uint32 {
|
||||
if r != nil {
|
||||
return r.copyNum
|
||||
}
|
||||
|
||||
return nil
|
||||
return 0
|
||||
}
|
||||
|
||||
func (r *PutObjectPartInit) SetCopiesNumber(v []uint32) {
|
||||
func (r *PutObjectPartInit) SetCopiesNumber(v uint32) {
|
||||
r.copyNum = v
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue