[#13] *: Rename __FROSTFS__ prefix to __SYSTEM__

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2023-03-15 12:50:43 +03:00
parent 8009022a20
commit 9dc3753467
5 changed files with 20 additions and 6 deletions

View file

@ -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.

View file

@ -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) {