pull: Stage content asynchronously
For similar reasons as metadata, this avoids having the main thread blocked in fdatasync(), and even better - we can achieve much higher parallelism if we have multiple threads blocked on fdatasync().
This commit is contained in:
1 parent
5b8e833351
commit
9618232f4d
5 files changed
+164
-78
No files matched your search
@@ -113,7 +113,7 @@ void ostree_repo_stage_metadata_async (OstreeRepo *self,
|
||||
|
||||
gboolean ostree_repo_stage_metadata_finish (OstreeRepo *self,
|
||||
GAsyncResult *result,
|
||||
guchar **out_checksum,
|
||||
guchar **out_csum,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_content (OstreeRepo *self,
|
||||
@@ -138,6 +138,19 @@ gboolean ostree_repo_stage_content_trusted (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void ostree_repo_stage_content_async (OstreeRepo *self,
|
||||
const char *expected_checksum,
|
||||
GInputStream *object,
|
||||
guint64 file_object_length,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean ostree_repo_stage_content_finish (OstreeRepo *self,
|
||||
GAsyncResult *result,
|
||||
guchar **out_csum,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_resolve_rev (OstreeRepo *self,
|
||||
const char *rev,
|
||||
gboolean allow_noent,
|
||||
|
||||
Reference in new issue
Block a user