RDB *rdb = (RDB *)db;
struct RDBStr *rdb = (struct RDBStr *)db;
db_FinishTransaction(DB *db, PRBool abort){    RDB *rdb = (RDB *)db;    if (db->type != DB_RDB) {	return 0;    }    return rdb->xactdone(db, abort);}