diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-05-22 12:13:08 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-25 13:12:33 +0000 |
commit | 8593357902ef3695b4eb9996e0567a07e3dcd006 (patch) | |
tree | 9a622fb6a58c25f679fe9b54f6d94d94dd42940e | |
parent | 5f82503a01b715cdc29c033189045712d6cff181 (diff) | |
download | ostree-8593357902ef3695b4eb9996e0567a07e3dcd006.tar.gz |
lib/repo-pull: Use values from struct in enqueue_one_object_request()
This introduces no functional changes, but will make some upcoming
refactoring a little easier.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1599
Approved by: jlebon
-rw-r--r-- | src/libostree/ostree-repo-pull.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index f5745f86..4410f998 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -1939,12 +1939,11 @@ enqueue_one_object_request (OtPullData *pull_data, { g_debug ("queuing fetch of %s.%s%s", checksum, ostree_object_type_to_string (objtype), - is_detached_meta ? " (detached)" : ""); + fetch_data->is_detached_meta ? " (detached)" : ""); if (is_meta) { - GVariant *objname = ostree_object_name_serialize (checksum, objtype); - g_hash_table_insert (pull_data->pending_fetch_metadata, objname, fetch_data); + g_hash_table_insert (pull_data->pending_fetch_metadata, g_variant_ref (fetch_data->object), fetch_data); } else { |