couchbaselabs / couchbaselabs/cbforest
Allow enumerators to keep working after db or view is closed
Open
bug
icebox
- Dominant language
- C++
- Stars
- 18
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
@borrrden ran into a crash where a C4QueryEnumerator is used (or freed) after its C4View is closed. Closing the C4View calls `fdb_close` so the database handle is invalidated, including any fdb_iterators.
It would be a good idea to add some internal refcounting on C4View and C4Database so an enumerator keeps the reference alive.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.