771b4bc
From b47a74ebc82734395268ac289bb183cec07c6cfc Mon Sep 17 00:00:00 2001
771b4bc
From: Michal Schmidt <mschmidt@redhat.com>
771b4bc
Date: Sun, 22 Apr 2012 10:54:58 +0200
771b4bc
Subject: [PATCH] transaction: abort does not need to use recursive deletion
771b4bc
771b4bc
Recursion is unnecessary, because we're deleting all transaction jobs
771b4bc
anyway. And the recursive deletion produces debug messages that are
771b4bc
pointless in transaction abort.
771b4bc
(cherry picked from commit 1b9cea0caa85dce6d9f117638a296b141c49a8fd)
771b4bc
---
771b4bc
 src/core/transaction.c |    2 +-
771b4bc
 1 file changed, 1 insertion(+), 1 deletion(-)
771b4bc
771b4bc
diff --git a/src/core/transaction.c b/src/core/transaction.c
771b4bc
index 394c181..8b41168 100644
771b4bc
--- a/src/core/transaction.c
771b4bc
+++ b/src/core/transaction.c
771b4bc
@@ -51,7 +51,7 @@ void transaction_abort(Transaction *tr) {
771b4bc
         assert(tr);
771b4bc
 
771b4bc
         while ((j = hashmap_first(tr->jobs)))
771b4bc
-                transaction_delete_job(tr, j, true);
771b4bc
+                transaction_delete_job(tr, j, false);
771b4bc
 
771b4bc
         assert(hashmap_isempty(tr->jobs));
771b4bc
 }