Read every mutable session head for index rebuilds.
(&self)
| 685 | |
| 686 | /// Read every mutable session head for index rebuilds. |
| 687 | pub fn list_session_heads(&self) -> PristineResult<Vec<(String, crate::types::Hash)>> { |
| 688 | let table = self.txn.open_table(SESSION_HEADS)?; |
| 689 | let mut heads = Vec::new(); |
| 690 | for result in table.iter()? { |
| 691 | let (session_id, hash) = result?; |
| 692 | heads.push(( |
| 693 | session_id.value().to_string(), |
| 694 | crate::types::Hash::from_bytes(*hash.value()), |
| 695 | )); |
| 696 | } |
| 697 | Ok(heads) |
| 698 | } |
| 699 | |
| 700 | /// Get all session events for a provenance graph. |
| 701 | /// |
no test coverage detected