Skip to content

Commit

Permalink
node/object: Allow local Put op with copies number set to 1
Browse files Browse the repository at this point in the history
Although such option setting is redundant, there is no reason to deny
service of these requests.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Dec 5, 2024
1 parent a0a4df1 commit 3a43f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/object/put/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (p *Streamer) initTarget(prm *PutInitPrm) error {

func (p *Streamer) preparePrm(prm *PutInitPrm) error {
localOnly := prm.common.LocalOnly()
if localOnly && prm.copiesNumber > 0 {
if localOnly && prm.copiesNumber > 1 {
return errors.New("storage of multiple object replicas is requested for a local operation")
}

Expand Down

0 comments on commit 3a43f4c

Please sign in to comment.