[#1064] policer: Disable EC processing
All checks were successful
DCO action / DCO (pull_request) Successful in 2m17s
Build / Build Components (1.21) (pull_request) Successful in 3m45s
Vulncheck / Vulncheck (pull_request) Successful in 3m34s
Build / Build Components (1.20) (pull_request) Successful in 5m18s
Tests and linters / Lint (pull_request) Successful in 5m6s
Tests and linters / Staticcheck (pull_request) Successful in 6m8s
Tests and linters / gopls check (pull_request) Successful in 6m54s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m31s
Tests and linters / Tests (1.21) (pull_request) Successful in 10m9s
Tests and linters / Tests with -race (pull_request) Successful in 10m19s
All checks were successful
DCO action / DCO (pull_request) Successful in 2m17s
Build / Build Components (1.21) (pull_request) Successful in 3m45s
Vulncheck / Vulncheck (pull_request) Successful in 3m34s
Build / Build Components (1.20) (pull_request) Successful in 5m18s
Tests and linters / Lint (pull_request) Successful in 5m6s
Tests and linters / Staticcheck (pull_request) Successful in 6m8s
Tests and linters / gopls check (pull_request) Successful in 6m54s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m31s
Tests and linters / Tests (1.21) (pull_request) Successful in 10m9s
Tests and linters / Tests with -race (pull_request) Successful in 10m19s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
23db20582c
commit
04a23efef6
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
"git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs"
|
||||||
containercore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/container"
|
containercore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/container"
|
||||||
objectcore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/object"
|
objectcore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/object"
|
||||||
|
policycore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/policy"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/replicator"
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/replicator"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client"
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client"
|
||||||
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
||||||
|
@ -40,6 +41,10 @@ func (p *Policer) processObject(ctx context.Context, addrWithType objectcore.Add
|
||||||
}
|
}
|
||||||
|
|
||||||
policy := cnr.Value.PlacementPolicy()
|
policy := cnr.Value.PlacementPolicy()
|
||||||
|
if policycore.IsECPlacement(policy) {
|
||||||
|
// EC not supported yet by policer
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
nn, err := p.placementBuilder.BuildPlacement(idCnr, &idObj, policy)
|
nn, err := p.placementBuilder.BuildPlacement(idCnr, &idObj, policy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue