mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
thank you clippy, actually a nice suggestion
This commit is contained in:
parent
c23d97f33c
commit
3826c540ae
1 changed files with 2 additions and 1 deletions
|
@ -367,10 +367,11 @@ impl<Clock: LogicalClock, T: Sync + Send + Clone + Debug + 'static> MvStore<Cloc
|
|||
assert_eq!(tx.state, TransactionState::Active);
|
||||
if let Some(row_versions) = self.rows.get(&id) {
|
||||
let row_versions = row_versions.value().read().unwrap();
|
||||
for rv in row_versions
|
||||
if let Some(rv) = row_versions
|
||||
.iter()
|
||||
.rev()
|
||||
.filter(|rv| rv.is_visible_to(&tx, &self.txs))
|
||||
.next()
|
||||
{
|
||||
tx.insert_to_read_set(id);
|
||||
return Ok(Some(rv.row.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue