Commit function in libpijul

[?]
Apr 29, 2021, 2:33 PM
V3HHWF4Q5GNB3EAIVEBF274OZ4VNC2MFP25CLLRRCQUA2PGDJMQQC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in libpijul/src/lib.rs at line 118
    [2.720537]
    [2.720537]
    pub fn commit<T: pristine::MutTxnT>(txn: std::sync::Arc<std::sync::RwLock<T>>) -> Result<(), T::GraphError> {
    let txn = if let Ok(txn) = std::sync::Arc::try_unwrap(txn) {
    txn.into_inner().unwrap()
    } else {
    unreachable!()
    };
    txn.commit()
    }