mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 13:52:49 +02:00
remove unnecessary cf arc refcnt workaround
log errors and panics propagating through the request task join Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
7ce782ddf4
commit
b4d22bd05e
5 changed files with 53 additions and 28 deletions
|
@ -30,8 +30,5 @@ pub(super) fn open(db: &Arc<Engine>, name: &str) -> Arc<ColumnFamily> {
|
|||
// lifetime parameter. We should not hold this handle, even in its Arc, after
|
||||
// closing the database (dropping `Engine`). Since `Arc<Engine>` is a sibling
|
||||
// member along with this handle in `Map`, that is prevented.
|
||||
unsafe {
|
||||
Arc::increment_strong_count(cf_ptr);
|
||||
Arc::from_raw(cf_ptr)
|
||||
}
|
||||
unsafe { Arc::from_raw(cf_ptr) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue