CTEST2(bloom, clear) { data->b1->a[0] = 0xCA; data->b1->a[data->b1->size -1] = 0xFE; bloom_clear(data->b1); ASSERT_EQUAL_U(0, bloom_count(data->b1)); }
void reset_validation_buffer() { int i; bloom* tmp; vs.abort_count = 0; vs.commit_count = 0; vs.update_set_count = 0; tmp = vs.ws; vs.ws = vs.snapshots[MaxPreviousST-1]; bloom_clear(vs.ws); for (i = MaxPreviousST-1; i > 0; i--) vs.snapshots[i] = vs.snapshots[i-1]; vs.snapshots[0] = tmp; buffer_clear(us_buffer); }