[ostree] pull-local: Fix race condition
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull-local: Fix race condition
- Date: Sat, 8 Jun 2013 16:59:05 +0000 (UTC)
commit 3e1e26352fc351423fcd5b5b322238247ee148e6
Author: Colin Walters <walters verbum org>
Date: Sat Jun 8 12:58:44 2013 -0400
pull-local: Fix race condition
https://bugzilla.gnome.org/show_bug.cgi?id=701861
src/ostree/ot-builtin-pull-local.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index 36719ea..98010b8 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -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))
goto out;
+ data->n_objects_to_check = g_hash_table_size (source_objects);
g_hash_table_iter_init (&hash_iter, source_objects);
while (g_hash_table_iter_next (&hash_iter, &key, &value))
{
GVariant *serialized_key = key;
- data->n_objects_to_check++;
g_thread_pool_push (data->threadpool, g_variant_ref (serialized_key), NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]