mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-07 10:14:21 +01:00
disable schema reprepare for MVCC
This commit is contained in:
@@ -2008,12 +2008,13 @@ pub fn op_transaction(
|
||||
if state.mv_tx_id.is_none() {
|
||||
// We allocate the first page lazily in the first transaction.
|
||||
return_if_io!(pager.maybe_allocate_page1());
|
||||
let header_schema_cookie = pager
|
||||
.io
|
||||
.block(|| pager.with_header(|header| header.schema_cookie.get()))?;
|
||||
if header_schema_cookie != *schema_cookie {
|
||||
return Err(LimboError::SchemaUpdated);
|
||||
}
|
||||
// TODO: when we fix MVCC enable schema cookie detection for reprepare statements
|
||||
// let header_schema_cookie = pager
|
||||
// .io
|
||||
// .block(|| pager.with_header(|header| header.schema_cookie.get()))?;
|
||||
// if header_schema_cookie != *schema_cookie {
|
||||
// return Err(LimboError::SchemaUpdated);
|
||||
// }
|
||||
let tx_id = mv_store.begin_tx(pager.clone());
|
||||
conn.mv_transactions.borrow_mut().push(tx_id);
|
||||
state.mv_tx_id = Some(tx_id);
|
||||
|
||||
Reference in New Issue
Block a user