diff options
Diffstat (limited to 'src/rollback.zig')
| -rw-r--r-- | src/rollback.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rollback.zig b/src/rollback.zig index 46e00721..ce4016d8 100644 --- a/src/rollback.zig +++ b/src/rollback.zig @@ -679,16 +679,16 @@ test "a view's slot, live or drawn outside a step (a replica's own, another live // or view 1 read (as a replica client's frontend reads its own) while // view 0 is live: 0 parked and put back. const text = "the column tag of view 0, its own"; - p.col_tags[0].own = try gpa.dupe(u8, text); + p.view().col_tags[0].own = try gpa.dupe(u8, text); if (drawn) try pardes.views.within(p, 1, {}, Read.read) else { p.toView(1); p.toView(0); } // The live view drops it, and its memory is another's: something the // copy has no business saving. - const was = p.col_tags[0].own.?; + const was = p.view().col_tags[0].own.?; gpa.free(was); - p.col_tags[0].own = null; + p.view().col_tags[0].own = null; const other = try gpa.alloc(u8, text.len); defer gpa.free(other); if (other.ptr != was.ptr) { // the heap handed out another |
