pull-local: Fix race condition
https://bugzilla.gnome.org/show_bug.cgi?id=701861
This commit is contained in:
parent
7e882cc2cf
commit
3e1e26352f
|
|
@ -268,11 +268,11 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
|
||||||
if (!ostree_repo_prepare_transaction (data->dest_repo, FALSE, cancellable, error))
|
if (!ostree_repo_prepare_transaction (data->dest_repo, FALSE, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
data->n_objects_to_check = g_hash_table_size (source_objects);
|
||||||
g_hash_table_iter_init (&hash_iter, source_objects);
|
g_hash_table_iter_init (&hash_iter, source_objects);
|
||||||
while (g_hash_table_iter_next (&hash_iter, &key, &value))
|
while (g_hash_table_iter_next (&hash_iter, &key, &value))
|
||||||
{
|
{
|
||||||
GVariant *serialized_key = key;
|
GVariant *serialized_key = key;
|
||||||
data->n_objects_to_check++;
|
|
||||||
g_thread_pool_push (data->threadpool, g_variant_ref (serialized_key), NULL);
|
g_thread_pool_push (data->threadpool, g_variant_ref (serialized_key), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue