-
Notifications
You must be signed in to change notification settings - Fork 624
Don't leak orphaned docs when deleting #32
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
Conversation
} | ||
docs = updated; | ||
return count; | ||
ImmutableSortedMap<DocumentKey, MaybeDocument> getDocuments() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Rename to getAllDocuments()
to match getAllDocumentsMatchingQuery()
.
Feel free to disagree :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other one should change to getDocumentsMatchingQuery()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine by me. Can you make this change (if you want, in a follow up?). getDocumentsMatchingQuery()
is already the name we use on Web.
/retest |
/test smoke-tests-experimental |
/test connected-check |
/test connected-check |
/test smoke-tests-experimental |
Previously, we weren't deleting our tracking of orphaned documents when we deleted the doc itself. I moved the deletion into the reference delegate, which is probably a better home anyways, and delete from the orphaned doc map at the same time so we no longer leak.
Caught while porting to web.