Skip to content
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

Spec: how to delete files? #94

Open
bnewbold opened this issue Oct 30, 2017 · 2 comments
Open

Spec: how to delete files? #94

bnewbold opened this issue Oct 30, 2017 · 2 comments

Comments

@bnewbold
Copy link
Collaborator

From experimentation, it looks like deletes are encoded by adding a Node entry with no Stat... but with updated children?

If somebody replies to this issue I can submit a PR updating the paper.

@bnewbold
Copy link
Collaborator Author

As far as I can tell, deletions are handled by writing a new Node at the old path with no Stat. children for this Node should have all references to the old entry deleted at all hierarchy levels. The new index (aka, the deletion version) should be included as the most recent entry at all currently non-empty directory levels (aka, deleting a single deeply nested file results in a shorter children list than previously).

@bnewbold
Copy link
Collaborator Author

bnewbold commented Jan 3, 2018

There is another level of complexity: deleted nodes (aka, empty nodes or "tombstones") can be be garbage collected on any write to the register. This is tricky/hard! Will probably be removed in hyperdb, or left as an optional optimization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant