/* Function for resetting the internal state of the Peer Database module.  */
static void internal_state_reset(pdb_t *pdb)
/* Function for resetting the internal state of the Peer Database module.  */
static void internal_state_reset(pdb_t *pdb)
{
    memset(pdb, 0, sizeof(pdb_t));
    for (uint32_t i = 0; i < N_WRITE_BUFFER_RECORDS; i++)
    {
        write_buffer_record_invalidate(&pdb->write_buffer_records[i]);
    }
}