1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-01 16:33:02 +01:00
Neal H. Walfield 371ae66e9d g10: Improve TOFU batch update code.
* g10/gpg.h (tofu): Rename field batch_update_ref to
batch_updated_wanted.
* g10/tofu.c (struct tofu_dbs_s): Rename field batch_update to
in_batch_transaction.
(begin_transaction): Only end an extant batch transaction if we are
not in a normal transaction.  When ending a batch transaction, really
end it.  Update ctrl->tofu.batch_update_started when starting a batch
transaction.
(end_transaction): Only release a batch transaction if ONLY_BATCH is
true.  When releasing a batch transaction, assert that there is no
open normal transaction.  Only allow DBS to be NULL if ONLY_BATCH is
true.
(tofu_begin_batch_update): Don't update
ctrl->tofu.batch_update_started.
(opendbs): Call end_transaction unconditionally.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
2016-08-30 16:06:40 +02:00
..
2016-07-13 13:31:12 +02:00
2016-06-30 18:50:16 +02:00
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2007-07-04 19:49:40 +00:00
2016-08-03 16:55:33 +02:00
2014-11-13 12:01:42 +01:00
2015-02-04 09:15:34 +01:00
2016-08-25 09:37:56 +02:00
2016-08-30 16:06:40 +02:00
2015-02-04 09:15:34 +01:00
2016-08-03 16:54:01 +02:00
2016-08-25 09:37:56 +02:00
2016-08-18 16:15:49 +02:00
2016-06-30 18:50:16 +02:00
2016-08-03 16:55:33 +02:00
2016-08-25 15:16:32 +02:00
2016-08-25 09:37:56 +02:00
2016-07-01 14:16:18 +02:00
2016-08-25 09:37:56 +02:00
2016-01-22 10:54:10 +01:00
2016-07-13 13:31:12 +02:00
2016-08-11 21:32:55 +02:00
2016-06-30 11:45:13 +02:00
2008-12-12 08:54:50 +00:00
2016-08-18 10:08:34 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-03-08 14:08:49 +01:00
2016-07-01 09:47:48 +02:00
2016-08-10 16:50:29 +02:00
2016-08-25 09:37:56 +02:00
2016-05-03 11:26:06 +02:00
2016-06-30 18:50:16 +02:00
2016-08-30 16:06:40 +02:00
2014-01-29 17:45:05 +01:00