jonhoo / jonhoo/left-right

rollback

Open
#77 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.3k
Forks
114
PR merge metrics
No merged PRs in 30d

Description

When looking at how the `refresh` mechanism works on stream, it ocurred to me that it seems like a (single level) `rollback` mechanism seems like it would be possible to implement, by:
* pointing readers to the `stale` map,
* dropping the current `read` map,
* cloning the `stale` map, as the new write map,
* abandoning the `oplog`,

I think the `first`/`second` drop seems tricky though, because you would need to perform the `second` drop, for the items in the oplog. (i.e. you want to actually drop the values which are being rolled back, but don't exist in the `stale` map, while not performing the second drop on items in the `stale` map).

There was a bit of musing on uses for `non-collection` evmaps and what they are useful for.
I think the addition of rollback could make them more obviously useful.

This is not really something I need, but _seemed not impossible to implement_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.