You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.
First of all we don't need a holder, at all!
We can create an index directly and return it. We don't need a global container for all indexes. We have a path so if we need to get an index we can create a new instance and load data from a disk.
With holder we would have to sync up in-memory indexes with storage + extra instance to maintain, which consume memory and is very error prone (panics).
// evaluate composition of operationsfor_, op:=rangel.operations {
// ...// this lookup (il) contains a different index instance, but it points to the same file!// it will return an error, because inside values we need to load a different index (related to the operation), but opening already opened index (storage) returns an error because of syscall.Flockr, e=il.values(p) // <--- error
}
We can avoid an error if we open an index in indexLookup.values(..), Close it before we iterate over operations.
Investigate how pilosa holder propagates Open/Close.
The text was updated successfully, but these errors were encountered: