mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
g10: Drop unused argument.
* g10/tofu.c (begin_transaction): Remove unused option only_batch. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
268f6b7a34
commit
70df5a8fd7
@ -163,7 +163,7 @@ tofu_policy_to_trust_level (enum tofu_policy policy)
|
|||||||
|
|
||||||
/* Start a transaction on DB. */
|
/* Start a transaction on DB. */
|
||||||
static gpg_error_t
|
static gpg_error_t
|
||||||
begin_transaction (ctrl_t ctrl, int only_batch)
|
begin_transaction (ctrl_t ctrl)
|
||||||
{
|
{
|
||||||
tofu_dbs_t dbs = ctrl->tofu.dbs;
|
tofu_dbs_t dbs = ctrl->tofu.dbs;
|
||||||
int rc;
|
int rc;
|
||||||
@ -219,9 +219,6 @@ begin_transaction (ctrl_t ctrl, int only_batch)
|
|||||||
dbs->batch_update_started = gnupg_get_time ();
|
dbs->batch_update_started = gnupg_get_time ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (only_batch)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
log_assert(dbs->in_transaction >= 0);
|
log_assert(dbs->in_transaction >= 0);
|
||||||
dbs->in_transaction ++;
|
dbs->in_transaction ++;
|
||||||
|
|
||||||
@ -2231,7 +2228,7 @@ tofu_register (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
|
|||||||
|
|
||||||
/* We do a query and then an insert. Make sure they are atomic
|
/* We do a query and then an insert. Make sure they are atomic
|
||||||
by wrapping them in a transaction. */
|
by wrapping them in a transaction. */
|
||||||
rc = begin_transaction (ctrl, 0);
|
rc = begin_transaction (ctrl);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
@ -2479,7 +2476,7 @@ tofu_get_validity (ctrl_t ctrl, PKT_public_key *pk, strlist_t user_id_list,
|
|||||||
|
|
||||||
fingerprint = hexfingerprint (pk, NULL, 0);
|
fingerprint = hexfingerprint (pk, NULL, 0);
|
||||||
|
|
||||||
begin_transaction (ctrl, 0);
|
begin_transaction (ctrl);
|
||||||
|
|
||||||
for (user_id = user_id_list; user_id; user_id = user_id->next, bindings ++)
|
for (user_id = user_id_list; user_id; user_id = user_id->next, bindings ++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user