File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ insert into t1 values(1, 1);
7070select * from t1;
7171 select * from t1;
7272delete from t1 where id = 0;
73+ update t1 set a = 101 where id = 1;
7374select * from t1; select * from t1;
7475 insert into t1 values(3,3);
7576 select * from t1;
@@ -84,7 +85,7 @@ commit;
8485
8586** 提示** 事务提交时可以使用` ObLsmImpl::batch_put ` ,来一次性写入一批数据,需要考虑这一批数据写入的原子性,以及写入过程中的失败回滚。
8687
87- ** 注意 ** ` update_record_with_trx ` 在LAB#3 中不做要求,在 LAB #4 中要求必须实现 。
88+ ** 提示 ** 在 lab # 3 中需要支持两个客户端在事务中并发执行简单的 update 语句。例如: ` update t set a = 1 where b = 2 ` 。在后续 lab # 4 中还需要支持更复杂的 update 语法,详情可参考lab #4 文档 。
8889
8990** 思考** 当前的 WriteBatch 是完全在内存中的,如果事务中涉及的大小超过内存大小应该如何处理?
9091
@@ -115,4 +116,4 @@ Manifest 文件是 LSM-Tree 的 "元数据目录",用于记录某一时间点
115116
116117你需要在 ` LsmTableEngine ` 初始化时,从 LSM-Tree 中恢复自增列 ID ` inc_id_ ` 。
117118
118- ** 思考** MiniOB 中是否需要存储额外 LSM-Tree 存储引擎日志,用于持久化和恢复?
119+ ** 思考** MiniOB 中是否需要存储额外 LSM-Tree 存储引擎日志,用于持久化和恢复?
You can’t perform that action at this time.
0 commit comments