eden: commit the Rust ContentStore when unable to find a blob

Summary:
The markforrefresh only exist in the legacy Python contentstore, commiting the
current store will have the same effect for the Rust store.

Reviewed By: DurhamG

Differential Revision: D20562032

fbshipit-source-id: de12cfd65d992395c9b9894d1f05cf50d86b0191
This commit is contained in:
Xavier Deguillard 2020-03-23 14:30:15 -07:00 committed by Facebook GitHub Bot
parent 674e9c7900
commit 730327c29e

View File

@ -716,7 +716,12 @@ class HgServer(object):
# does not have a contentstore. So fail immediately
raise ResetRepoError(e)
self.repo.fileslog.contentstore.markforrefresh()
if self.repo.fileslog._ruststore:
# Committing the contentstore will force it to be rebuilt,
# effectively refreshing the store.
self.repo.fileslog.contentstore.commitpending()
else:
self.repo.fileslog.contentstore.markforrefresh()
try:
return attr_of(fctx)