From 8a6f8e1e397a2d676b211f2dbc6df4a80b67442d Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 21 Jul 2016 18:07:22 +0200 Subject: g10: Drop superfluous begin transaction. * g10/tofu.c (record_binding): We only need a transaction for the split format. Signed-off-by: Justus Winter --- g10/tofu.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/g10/tofu.c b/g10/tofu.c index 0b9d84822..847c023f4 100644 --- a/g10/tofu.c +++ b/g10/tofu.c @@ -1199,6 +1199,7 @@ record_binding (tofu_dbs_t dbs, const char *fingerprint, const char *email, only place where we start two transaction and we always start transaction on the DB_KEY DB first, thus deadlock is not possible. */ + /* We only need a transaction for the split format. */ { db_key = getdb (dbs, fingerprint, DB_KEY); if (! db_key) @@ -1215,13 +1216,6 @@ record_binding (tofu_dbs_t dbs, const char *fingerprint, const char *email, if (rc) goto out_revert_one; } - else - { - rc = begin_transaction (db_email, 1); - if (rc) - goto leave; - } - if (show_old) /* Get the old policy. Since this is just for informational -- cgit v1.2.3