(
&self,
working_copy: WorkingCopyId,
)
| 221 | } |
| 222 | |
| 223 | fn iter_file_index_v2( |
| 224 | &self, |
| 225 | working_copy: WorkingCopyId, |
| 226 | ) -> PristineResult<Vec<(Vec<u8>, FileIndexV2Entry)>> { |
| 227 | let table = self.txn.open_table(FILE_INDEX_V2)?; |
| 228 | let mut rows = Vec::new(); |
| 229 | for result in table.iter()? { |
| 230 | let (key, value) = result?; |
| 231 | let key = FileIndexV2Key::decode(key.value())?; |
| 232 | let entry = decode_file_index_v2(value.value())?; |
| 233 | if key.working_copy == working_copy { |
| 234 | rows.push((key.path, entry)); |
| 235 | } |
| 236 | } |
| 237 | Ok(rows) |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | impl FileIndexV2MutTxnT for WriteTxn<'_> { |
nothing calls this directly
no test coverage detected