mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
gpg: Add more log_clock calls to keydb.c
* g10/keydb.c (keydb_get_keyblock): Add log_clock calls.
This commit is contained in:
parent
663a31f1ea
commit
53e9b86085
@ -980,6 +980,9 @@ keydb_get_keyblock (KEYDB_HANDLE hd, KBNODE *ret_kb)
|
|||||||
if (!hd)
|
if (!hd)
|
||||||
return gpg_error (GPG_ERR_INV_ARG);
|
return gpg_error (GPG_ERR_INV_ARG);
|
||||||
|
|
||||||
|
if (DBG_CLOCK)
|
||||||
|
log_clock ("keydb_get_keybock enter");
|
||||||
|
|
||||||
if (keyblock_cache.state == KEYBLOCK_CACHE_FILLED)
|
if (keyblock_cache.state == KEYBLOCK_CACHE_FILLED)
|
||||||
{
|
{
|
||||||
iobuf_seek (keyblock_cache.iobuf, 0);
|
iobuf_seek (keyblock_cache.iobuf, 0);
|
||||||
@ -990,6 +993,9 @@ keydb_get_keyblock (KEYDB_HANDLE hd, KBNODE *ret_kb)
|
|||||||
ret_kb);
|
ret_kb);
|
||||||
if (err)
|
if (err)
|
||||||
keyblock_cache_clear ();
|
keyblock_cache_clear ();
|
||||||
|
if (DBG_CLOCK)
|
||||||
|
log_clock (err? "keydb_get_keyblock leave (cached, failed)"
|
||||||
|
: "keydb_get_keyblock leave (cached)");
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1037,6 +1043,9 @@ keydb_get_keyblock (KEYDB_HANDLE hd, KBNODE *ret_kb)
|
|||||||
if (keyblock_cache.state != KEYBLOCK_CACHE_FILLED)
|
if (keyblock_cache.state != KEYBLOCK_CACHE_FILLED)
|
||||||
keyblock_cache_clear ();
|
keyblock_cache_clear ();
|
||||||
|
|
||||||
|
if (DBG_CLOCK)
|
||||||
|
log_clock (err? "keydb_get_keyblock leave (failed)"
|
||||||
|
: "keydb_get_keyblock leave");
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user