Read every mutable session head for index rebuilds.
(&self)
| 640 | |
| 641 | /// Read every mutable session head for index rebuilds. |
| 642 | pub fn list_session_heads(&self) -> PristineResult<Vec<(String, crate::types::Hash)>> { |
| 643 | let table = self.txn.open_table(SESSION_HEADS)?; |
| 644 | let mut heads = Vec::new(); |
| 645 | for result in table.iter()? { |
| 646 | let (session_id, hash) = result?; |
| 647 | heads.push(( |
| 648 | session_id.value().to_string(), |
| 649 | crate::types::Hash::from_bytes(*hash.value()), |
| 650 | )); |
| 651 | } |
| 652 | Ok(heads) |
| 653 | } |
| 654 | |
| 655 | /// Get all session events for a provenance graph. |
| 656 | /// |
no test coverage detected