Skip to content

Commit

Permalink
Fix dirty_pages computation in finalize_transaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Oct 7, 2022
1 parent 587970f commit cb6f3f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mvfs/src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,12 @@ impl Connection {
txn.disable_read_set();
}

let dirty_pages = txn.written_pages();
let dirty_pages = txn
.written_pages()
.iter()
.copied()
.chain(self.write_buffer.keys().copied())
.collect::<HashSet<_>>();

if self.fixed_version.is_some() {
// Disallow write to snapshot
Expand Down

0 comments on commit cb6f3f8

Please sign in to comment.