mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
add methods for read/write schema cookie
This commit is contained in:
@@ -2062,6 +2062,11 @@ pub fn op_transaction(
|
||||
match res {
|
||||
Ok(header_schema_cookie) => {
|
||||
if header_schema_cookie != *schema_cookie {
|
||||
tracing::info!(
|
||||
"schema changed, force reprepare: {} != {}",
|
||||
header_schema_cookie,
|
||||
*schema_cookie
|
||||
);
|
||||
return Err(LimboError::SchemaUpdated);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user