mvcc: starting a pager read tx can fail with busy

This commit is contained in:
Jussi Saurio
2025-09-16 15:18:24 +03:00
parent 0b223e78e3
commit d9e7b7f0e1

View File

@@ -1399,7 +1399,10 @@ impl<Clock: LogicalClock> MvStore<Clock> {
// TODO: we need to tie a pager's read transaction to a transaction ID, so that future refactors to read
// pages from WAL/DB read from a consistent state to maintiain snapshot isolation.
pager.begin_read_tx()?;
let result = pager.begin_read_tx()?;
if let crate::result::LimboResult::Busy = result {
return Err(LimboError::Busy);
}
Ok(tx_id)
}