-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rollback #77
Comments
+1 to this functionality or something like it. Our use case currently involves simply rebuilding the whole hashmap from scratch each time a new configuration file is downloaded rather than updating it in place. We have this implemented in erlang using
I realize this comment straddles a bit between |
@dialtone Ah, I think maybe you have a different impression of how The rollback being discussed here is specifically about what you do if you enqueue a number of operations and then want to void them instead of calling |
@jonhoo fwiw, the rollback I was thinking above is slightly more complex than just tossing away the oplog, but after Or at least noting that the way that writes are staggered seems to make that possible. |
Yeah, I think it might be possible to roll back the last
2 is far more complex, but also much more efficient! |
@jonhoo hey, I think I may have explained myself badly, sorry about that :). Yeah I understand |
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:stale
map,read
map,stale
map, as the new write map,oplog
,I think the
first
/second
drop seems tricky though, because you would need to perform thesecond
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 thestale
map, while not performing the second drop on items in thestale
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
The text was updated successfully, but these errors were encountered: