Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove optimization on blk free operation
The optimization in blk free may cause the following issue, just remove it and wait for GC handling: - T1: blob1 is written with LSN 1 — [blkid=10, chunk=1, cnt=5]. - T2: blob1 is deleted with LSN 10, causing the last_append_offset to revert to 10. - T3: blob2 is written with LSN 11 — [blkid=10, chunk=1, cnt=5]. - T4: The SM is terminated and restarted. - T5: LSN 1 is replayed, committing block [blkid=10, chunk=1, cnt=5]. - T6: LSN 11 is replayed, committing block [blkid=10, chunk=1, cnt=5]. - T7: LSN 10 is committed, freeing block [blkid=10, chunk=1, cnt=5]. - T8: LSN 11 is committed again, but since the blocks have already been freed, they are not available for LSN 11.
- Loading branch information