fix: v0.7.4 写语句子查询 / 约束硬化 / 真惰性流式 — UPDATE-DELETE WHERE 子查询静默 0 行(四引擎,关联引用显式 NOT_SUPPORTED + EXPLAIN 同步)/ 主键 NULL-undefined 强制拒绝 / DROP INDEX 保留建表 UNIQUE(仅索引来源可解除)/ GROUP BY-DISTINCT-UNION 键类型安全编码 / UPDATE 未知列报错 / queryStream 多语句拒绝 / KVStore 后台错误跨 reopen 清理 + Hybrid begin 补偿 / RB-Tree 删除双黑修复 + LSM 死代码清理 / findStream 迭代器化真惰性(limit 早停 O(1) 内存)/ REINDEX 单次扫描 + 48 回归
This commit is contained in:
+8
-1
@@ -292,7 +292,14 @@ export class HybridEngine implements IStorageEngine {
|
||||
|
||||
async beginTransaction(): Promise<void> {
|
||||
await this.memoryEngine.beginTransaction();
|
||||
await this.diskEngine.beginTransaction();
|
||||
// v0.7.4: 磁盘 begin 失败时补偿回滚内存快照 —— 此前内存已 begin、
|
||||
// 磁盘抛错 → 内存快照泄漏(后续所有事务报 TX_ACTIVE)
|
||||
try {
|
||||
await this.diskEngine.beginTransaction();
|
||||
} catch (error) {
|
||||
await this.memoryEngine.rollbackTransaction();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async commitTransaction(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user