[#343] Replace default policy in authmate

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-02-06 03:18:16 +03:00 committed by Alex Vanin
parent 3277293bb3
commit fdc07b8dc1

View file

@ -327,13 +327,13 @@ func buildPlacementPolicy(placementRules string) (*netmap.PlacementPolicy, error
}
/*
REP 1 IN X // place one copy of object
CBF 1
REP 2 IN X // place two copies of object
CBF 3
SELECT 2 From * AS X // in container of two nodes
*/
pp := new(netmap.PlacementPolicy)
pp.SetContainerBackupFactor(1)
pp.SetReplicas([]*netmap.Replica{newReplica("X", 1)}...)
pp.SetContainerBackupFactor(3)
pp.SetReplicas([]*netmap.Replica{newReplica("X", 2)}...)
pp.SetSelectors([]*netmap.Selector{newSimpleSelector("X", 2)}...)
return pp, nil