forked from TrueCloudLab/frostfs-api-go
[#209] object: Remove childfree
search attribute
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
6b0bd42f25
commit
79c76e87e4
2 changed files with 0 additions and 18 deletions
|
@ -72,7 +72,6 @@ const (
|
||||||
fKeyParent
|
fKeyParent
|
||||||
fKeyPropRoot
|
fKeyPropRoot
|
||||||
fKeyPropPhy
|
fKeyPropPhy
|
||||||
fKeyPropChildfree
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (k filterKey) String() string {
|
func (k filterKey) String() string {
|
||||||
|
@ -103,8 +102,6 @@ func (k filterKey) String() string {
|
||||||
return v2object.FilterPropertyRoot
|
return v2object.FilterPropertyRoot
|
||||||
case fKeyPropPhy:
|
case fKeyPropPhy:
|
||||||
return v2object.FilterPropertyPhy
|
return v2object.FilterPropertyPhy
|
||||||
case fKeyPropChildfree:
|
|
||||||
return v2object.FilterPropertyChildfree
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,18 +224,6 @@ func (f *SearchFilters) AddPhyFilter() {
|
||||||
f.addPhyFilter()
|
f.addPhyFilter()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *SearchFilters) addChildFreeFilter(val bool) {
|
|
||||||
f.addReservedFilter(MatchStringEqual, fKeyPropChildfree, boolStringer(val))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *SearchFilters) AddChildfreeFilter() {
|
|
||||||
f.addChildFreeFilter(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *SearchFilters) AddNonChildfreeFilter() {
|
|
||||||
f.addChildFreeFilter(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
|
func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
|
||||||
f.addReservedFilter(m, fKeyParent, id)
|
f.addReservedFilter(m, fKeyParent, id)
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,9 +41,6 @@ const (
|
||||||
|
|
||||||
// FilterPropertyPhy is a filter key to check if an object physically stored on a node.
|
// FilterPropertyPhy is a filter key to check if an object physically stored on a node.
|
||||||
FilterPropertyPhy = ReservedFilterPrefix + "PHY"
|
FilterPropertyPhy = ReservedFilterPrefix + "PHY"
|
||||||
|
|
||||||
// FilterPropertyChildfree is a filter key to check if an object has empty children list in `Split` header.
|
|
||||||
FilterPropertyChildfree = ReservedFilterPrefix + "CHILDFREE"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in a new issue