Changeset View
Changeset View
Standalone View
Standalone View
b/g10/tdbio.c
Context not available. | |||||
static void open_db(void); | static void open_db(void); | ||||
static void migrate_from_v2 (void); | static void migrate_from_v2 (void); | ||||
static void create_hashtable (TRUSTREC *vr, int type); | |||||
static int | static int | ||||
take_write_lock (void) | take_write_lock (void) | ||||
Context not available. | |||||
rc = tdbio_write_record( &rec ); | rc = tdbio_write_record( &rec ); | ||||
if( !rc ) | if( !rc ) | ||||
tdbio_sync(); | tdbio_sync(); | ||||
if (!rc) | |||||
create_hashtable (&rec, 0); | |||||
return rc; | return rc; | ||||
} | } | ||||
Context not available. | |||||
if( rc ) | if( rc ) | ||||
log_fatal( _("%s: error reading version record: %s\n"), | log_fatal( _("%s: error reading version record: %s\n"), | ||||
db_name, g10_errstr(rc) ); | db_name, g10_errstr(rc) ); | ||||
if( !vr.r.ver.trusthashtbl ) | |||||
create_hashtable( &vr, 0 ); | |||||
trusthashtbl = vr.r.ver.trusthashtbl; | trusthashtbl = vr.r.ver.trusthashtbl; | ||||
} | } | ||||
Context not available. |