summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-pull-private.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-10-23 13:05:25 +0200
committerAlexander Larsson <alexl@redhat.com>2020-10-23 13:55:33 +0200
commit125ed2b199153768f92049e48eb2cd40010f87ca (patch)
tree1811da09b606acd3bc4070a10d6003ef1e85665e /src/libostree/ostree-repo-pull-private.h
parent6c8e6539e2487c5d30a18c9b89dd8d6cf4455bb7 (diff)
downloadostree-125ed2b199153768f92049e48eb2cd40010f87ca.tar.gz
pull: Only download summary if we need it for the pull operation
If we have a commit id for all the refs we're pulling, and if we don't need the summary to list all the refs when mirroring then the only reason to download the summary is for the list of deltas. With the new "indexed-deltas" property in the config file (and mirrored to the summary file) we can detect when we don't need the summary for deltas and completely avoid downloading it then.
Diffstat (limited to 'src/libostree/ostree-repo-pull-private.h')
-rw-r--r--src/libostree/ostree-repo-pull-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-pull-private.h b/src/libostree/ostree-repo-pull-private.h
index d1c5fd14..a827557a 100644
--- a/src/libostree/ostree-repo-pull-private.h
+++ b/src/libostree/ostree-repo-pull-private.h
@@ -80,6 +80,7 @@ typedef struct {
GVariant *summary;
GHashTable *summary_deltas_checksums; /* Filled from summary and delta indexes */
gboolean summary_has_deltas; /* True if the summary existed and had a delta index */
+ gboolean has_indexed_deltas;
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 */