pull_data->fetched_deltapart_size, "total-delta-part-size", "t",
pull_data->total_deltapart_size, "total-delta-part-usize", "t",
pull_data->total_deltapart_usize, "total-delta-superblocks", "u",
- pull_data->static_delta_superblocks->len,
+ g_hash_table_size (pull_data->static_delta_targets),
/* We fetch metadata before content. These allow us to report metadata fetch progress
specifically. */
"outstanding-metadata-fetches", "u", pull_data->n_outstanding_metadata_fetches,
delta_superblock = g_variant_ref_sink (g_variant_new_from_bytes (
(GVariantType *)OSTREE_STATIC_DELTA_SUPERBLOCK_FORMAT, delta_superblock_data, FALSE));
- g_ptr_array_add (pull_data->static_delta_superblocks, g_variant_ref (delta_superblock));
g_hash_table_add (pull_data->static_delta_targets, g_strdup (to_revision));
if (!process_one_static_delta (pull_data, from_revision, to_revision, delta_superblock,
fetch_data->requested_ref, pull_data->cancellable, error))
need_summary = TRUE;
}
- pull_data->static_delta_superblocks
- = g_ptr_array_new_with_free_func ((GDestroyNotify)g_variant_unref);
pull_data->static_delta_targets
= g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify)g_free, NULL);
g_clear_pointer (&pull_data->summary_data_sig, g_bytes_unref);
g_clear_pointer (&pull_data->summary_sig_etag, g_free);
g_clear_pointer (&pull_data->summary, g_variant_unref);
- g_clear_pointer (&pull_data->static_delta_superblocks, g_ptr_array_unref);
g_clear_pointer (&pull_data->static_delta_targets, g_hash_table_unref);
g_clear_pointer (&pull_data->commit_to_depth, g_hash_table_unref);
g_clear_pointer (&pull_data->expected_commit_sizes, g_hash_table_unref);