D | database.rs | 48 use crate::gc::Gc; 768 gc: Option<Arc<Gc>>, field 872 pub fn new(db_root: &Path, gc: Option<Arc<Gc>>) -> Result<Self> { in new() 878 let mut db = Self { conn, gc, perboot: perboot::PERBOOT_DB.clone() }; in new() 1493 if let Some(ref gc) = self.gc { in with_transaction() 1494 gc.notify_gc(); in with_transaction() 3298 let mut db = KeystoreDB { conn, gc: None, perboot: Arc::new(perboot::PerbootDB::new()) }; in new_test_db() 3312 let gc = Gc::new_init_with(Default::default(), move || (Box::new(cb), gc_db, super_key)); in new_test_db_with_gc() localVariable 3314 KeystoreDB::new(path, Some(Arc::new(gc))) in new_test_db_with_gc()
|