summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-pull-private.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-09-01 14:52:49 +0200
committerAlexander Larsson <alexl@redhat.com>2020-10-23 13:06:42 +0200
commitdf7f07fc6c68717ba486e3869f508a28a857341b (patch)
tree7b2fa2f06e138e22ad11c2a01550fce56ab6513f /src/libostree/ostree-repo-pull-private.h
parent625606a7eccffd246b359a12215f1b5bad22b702 (diff)
downloadostree-df7f07fc6c68717ba486e3869f508a28a857341b.tar.gz
deltas: Use delta indexes when pulling
If there is no delta index in the summary, try to fetch the delta index for the commit we're going to and use that to find the delta (if any).
Diffstat (limited to 'src/libostree/ostree-repo-pull-private.h')
-rw-r--r--src/libostree/ostree-repo-pull-private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-pull-private.h b/src/libostree/ostree-repo-pull-private.h
index a7ea85cd..d1c5fd14 100644
--- a/src/libostree/ostree-repo-pull-private.h
+++ b/src/libostree/ostree-repo-pull-private.h
@@ -78,7 +78,8 @@ typedef struct {
char *summary_sig_etag;
guint64 summary_sig_last_modified; /* seconds since the epoch */
GVariant *summary;
- GHashTable *summary_deltas_checksums;
+ GHashTable *summary_deltas_checksums; /* Filled from summary and delta indexes */
+ gboolean summary_has_deltas; /* True if the summary existed and had a delta index */
GHashTable *ref_original_commits; /* Maps checksum to commit, used by timestamp checks */
GHashTable *verified_commits; /* Set<checksum> of commits that have been verified */
GHashTable *signapi_verified_commits; /* Map<checksum,verification> of commits that have been signapi verified */
@@ -93,6 +94,7 @@ typedef struct {
GHashTable *requested_fallback_content; /* Maps checksum to itself */
GHashTable *pending_fetch_metadata; /* Map<ObjectName,FetchObjectData> */
GHashTable *pending_fetch_content; /* Map<checksum,FetchObjectData> */
+ GHashTable *pending_fetch_delta_indexes; /* Set<FetchDeltaIndexData> */
GHashTable *pending_fetch_delta_superblocks; /* Set<FetchDeltaSuperData> */
GHashTable *pending_fetch_deltaparts; /* Set<FetchStaticDeltaData> */
guint n_outstanding_metadata_fetches;