forked from TrueCloudLab/frostfs-api-go
[#13] *: Rename __FROSTFS__ prefix to __SYSTEM__
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
8009022a20
commit
9dc3753467
5 changed files with 20 additions and 6 deletions
|
@ -9,9 +9,10 @@ import (
|
|||
)
|
||||
|
||||
// prefix of keys to subnet attributes.
|
||||
const attrSubnetPrefix = "__FROSTFS__SUBNET_"
|
||||
const attrSubnetPrefix = "__SYSTEM__SUBNET_"
|
||||
|
||||
// prefix of keys to subnet attributes.
|
||||
// Deprecated: use attrSubnetPrefix
|
||||
const attrSubnetPrefixNeoFS = "__NEOFS__SUBNET_"
|
||||
|
||||
const (
|
||||
|
@ -65,7 +66,7 @@ func subnetAttributeKey(id *refs.SubnetID) string {
|
|||
// - disables non-zero subnet;
|
||||
// - enables zero subnet.
|
||||
//
|
||||
// Attribute key is calculated from ID using format `__FROSTFS__SUBNET_%s`.
|
||||
// Attribute key is calculated from ID using format `__SYSTEM__SUBNET_%s`.
|
||||
// Attribute Value is:
|
||||
// - `True` if node enters the subnet;
|
||||
// - `False`, otherwise.
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func subnetAttrKey(val string) string {
|
||||
return "__FROSTFS__SUBNET_" + val
|
||||
return "__SYSTEM__SUBNET_" + val
|
||||
}
|
||||
|
||||
func assertSubnetAttrKey(t *testing.T, attr *netmap.Attribute, num uint32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue