mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00: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:
1 parent
7ce782ddf4
commit
b4d22bd05e
5 files changed
+53
-28
No files matched your search
@@ -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) }
|
||||
}
|
||||
Reference in new issue
Block a user