registry: optimize object marshaling #44

Merged
fyrchik merged 1 commit from fyrchik/xk6-frostfs:optimize-registry into master 2023-07-26 21:08:03 +00:00
Showing only changes of commit e71ac35c36 - Show all commits

View file

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