pull: Stage metadata objects asynchronously
This avoids the main thread being blocked on fdatasync(); also as a bonus we checksum metadata in a separate thread too.
This commit is contained in:
1 parent
f1b4db15a2
commit
5b8e833351
3 files changed
+140
-16
No files matched your search
@@ -103,6 +103,19 @@ gboolean ostree_repo_stage_metadata (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void ostree_repo_stage_metadata_async (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const char *expected_checksum,
|
||||
GVariant *object,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean ostree_repo_stage_metadata_finish (OstreeRepo *self,
|
||||
GAsyncResult *result,
|
||||
guchar **out_checksum,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_content (OstreeRepo *self,
|
||||
const char *expected_checksum,
|
||||
GInputStream *content,
|
||||
|
||||
Reference in new issue
Block a user