repo: Store transaction file, use it to optimize for pull resumes
If pull is interrupted, we may have downloaded an arbitrary subset of the requested objects. Previously, we handled this by scanning for all objects each time. However, there's an easy optimization - this patch creates a lock file in the repo. If we don't see that file when starting a pull, we know we don't need to stat() every file; presence of a dirtree object for example implies the existence of everything it references.
This commit is contained in:
1 parent
305cd02e0c
commit
56f8584fe4
5 files changed
+63
-25
No files matched your search
@@ -78,6 +78,7 @@ GFile * ostree_repo_get_file_object_path (OstreeRepo *self,
|
||||
|
||||
gboolean ostree_repo_prepare_transaction (OstreeRepo *self,
|
||||
gboolean enable_commit_hardlink_scan,
|
||||
gboolean *out_transaction_resume,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
|
||||
Reference in new issue
Block a user