add methods for read/write schema cookie

This commit is contained in:
Nikita Sivukhin
2025-08-12 17:29:56 +04:00
parent b82d850f7a
commit 1d8ed9aa55
3 changed files with 52 additions and 1 deletions

View File

@@ -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);
}
}