registry: optimize object marshaling #44
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ func NewObjSelector(registry *ObjRegistry, selectionSize int, filter *ObjFilter)
|
|||
if selectionSize <= 0 {
|
||||
selectionSize = objectSelectCache
|
||||
}
|
||||
if filter == nil || filter.Status == "" {
|
||||
panic("filtering without status is not supported")
|
||||
}
|
||||
objSelector := &ObjSelector{
|
||||
ctx: registry.ctx,
|
||||
boltDB: registry.boltDB,
|
||||
|
|
Loading…
Reference in a new issue