forked from TrueCloudLab/frostfs-api-go
[#189] sdk/netmap: Define unspecified clause
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
162b0de725
commit
d704795dcc
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
type Clause uint32
|
||||
|
||||
const (
|
||||
_ Clause = iota
|
||||
ClauseUnspecified Clause = iota
|
||||
|
||||
// ClauseSame is a selector modifier to select only nodes having the same value of bucket attribute.
|
||||
ClauseSame
|
||||
|
@ -22,7 +22,7 @@ const (
|
|||
func ClauseFromV2(c netmap.Clause) Clause {
|
||||
switch c {
|
||||
default:
|
||||
return 0
|
||||
return ClauseUnspecified
|
||||
case netmap.Same:
|
||||
return ClauseSame
|
||||
case netmap.Distinct:
|
||||
|
|
|
@ -13,7 +13,7 @@ func TestClauseFromV2(t *testing.T) {
|
|||
cV2 netmap.Clause
|
||||
}{
|
||||
{
|
||||
c: 0,
|
||||
c: ClauseUnspecified,
|
||||
cV2: netmap.UnspecifiedClause,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue